]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix 32096 UBSAN issues in gprofng
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Wed, 18 Sep 2024 04:36:29 +0000 (21:36 -0700)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Thu, 19 Sep 2024 03:24:24 +0000 (20:24 -0700)
commitb6532accdd8e24329cc69bb58bc2883796008776
treec406443e2d21c7f2fa4261442176c56ff9963ea2
parent5ea2e0f74eb63c6d20c9268e8a0b30ed9bdd8fe1
Fix 32096 UBSAN issues in gprofng

Fixed UBSAN runtime errors such as:
 - member call on address which does not point to an object of type 'Vector'
 - load of misaligned address 0x623e5a670173 for type 'int', which requires 4 byte alignment

gprofng/ChangeLog
2024-09-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>.

PR gprofng/32096
* libcollector/unwind.c: Fix UBSAN runtime errors.
* src/CallStack.cc (add_stack_java, add_stack_java_epilogue):
Change argument type to Vector<Histable*>*.
* src/Experiment.cc (update_ts_in_maps): Change variable type.
* src/Experiment.h: Change field type to Vector<Histable*>*.
gprofng/libcollector/unwind.c
gprofng/src/CallStack.cc
gprofng/src/Experiment.cc
gprofng/src/Experiment.h