[PATCH v2 1/5] libdwelf: Add dwelf_dwarf_debug_dwp and dwelf_dwarf_debug_sup functions
Mark Wielaard
mark@klomp.org
Fri Aug 14 12:01:59 GMT 2026
Hi Aaron,
On Thu, 2026-08-13 at 17:59 -0400, Aaron Merey wrote:
> > + size_t id_len;
> > + get_uleb128 (id_len, readp, endp);
>
> get_uleb128 reads a uint64_t into id_len but with type size_t it's not
> guaranteed to be at least as wide. If size_t is 32-bit then a
> malformed id_len could get truncated and potentially accepted as a
> legitimate value.
Ah, yes, changed the type the casting check just below to uint64_t.
> Otherwise all the patches in this series LGTM.
Rebased them on top of current main and pushed.
Please double check what is in libdw/libdw.map now (I moved all non-
experimental version sections before the experimental ones).
Thanks,
Mark
More information about the Elfutils-devel
mailing list