[DynInst_API:] [dyninst/dyninst] bbfe4c: Fix UB in dwarf/dwarf_subrange.cpp::get_type


Date: Wed, 22 Mar 2023 21:08:02 -0700
From: Tim Haines <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] bbfe4c: Fix UB in dwarf/dwarf_subrange.cpp::get_type
  Branch: refs/heads/fix_ub_dwarf_subrange_get_type
  Home:   https://github.com/dyninst/dyninst
  Commit: bbfe4cef3da8f100007722d6e5de133a33faff10
      https://github.com/dyninst/dyninst/commit/bbfe4cef3da8f100007722d6e5de133a33faff10
  Author: Tim Haines <thaines.astro@xxxxxxxxx>
  Date:   2023-03-22 (Wed, 22 Mar 2023)

  Changed paths:
    M dwarf/src/dwarf_subrange.cpp

  Log Message:
  -----------
  Fix UB in dwarf/dwarf_subrange.cpp::get_type

The dwarf_* functions return a pointer to their last argument. This causes 'get_type' to return a pointer to a local variable.


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] bbfe4c: Fix UB in dwarf/dwarf_subrange.cpp::get_type, Tim Haines <=