[DynInst_API:] [dyninst/dyninst] c4a422: Prevent use of possibly-uninitialized local variab...


Date: Wed, 10 May 2023 12:01:29 -0700
From: Tim Haines <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] c4a422: Prevent use of possibly-uninitialized local variab...
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: c4a422834fbc3e6159ba00f10820f13c1958901e
      https://github.com/dyninst/dyninst/commit/c4a422834fbc3e6159ba00f10820f13c1958901e
  Author: Tim Haines <thaines.astro@xxxxxxxxx>
  Date:   2023-05-10 (Wed, 10 May 2023)

  Changed paths:
    M dyninstAPI_RT/src/RTfreebsd.c
    M proccontrol/src/process.C
    M symtabAPI/src/Object-elf.C

  Log Message:
  -----------
  Prevent use of possibly-uninitialized local variable (#1433)

These were found using cppcheck's uninitvar and eraseDereference.

For the usages of iterator-like classes in process.C, they aren't strictly
uninitialized variable usages since the classes in question are standard
layout types. It would be better to replace the usages there with list
construction to avoid the static check altogether.


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] c4a422: Prevent use of possibly-uninitialized local variab..., Tim Haines <=