[DynInst_API:] [dyninst/dyninst] b1ddeb: Fix UB in dwarf/dwarf_subrange.cpp::get_type (#1402)


Date: Thu, 23 Mar 2023 07:25:26 -0700
From: Tim Haines <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] b1ddeb: Fix UB in dwarf/dwarf_subrange.cpp::get_type (#1402)
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: b1ddebd3125437d3385e65a7cce5bea715588028
      https://github.com/dyninst/dyninst/commit/b1ddebd3125437d3385e65a7cce5bea715588028
  Author: Tim Haines <thaines.astro@xxxxxxxxx>
  Date:   2023-03-23 (Thu, 23 Mar 2023)

  Changed paths:
    M dwarf/src/dwarf_subrange.cpp

  Log Message:
  -----------
  Fix UB in dwarf/dwarf_subrange.cpp::get_type (#1402)

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→]