diff options
author | Alan Modra <amodra@gmail.com> | 2021-05-15 14:36:26 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-05-15 14:36:54 +0930 |
commit | fc5e0925d4bff79c8c036cf00803112a1ec04188 (patch) | |
tree | d71d622247fdaadaa710ece3fdce8bfb9ffc2289 /binutils/ChangeLog | |
parent | 7c96e6120f1b9b5025629bbe995ca55d1be8f36f (diff) | |
download | gdb-fc5e0925d4bff79c8c036cf00803112a1ec04188.zip gdb-fc5e0925d4bff79c8c036cf00803112a1ec04188.tar.gz gdb-fc5e0925d4bff79c8c036cf00803112a1ec04188.tar.bz2 |
_mul_overflow and get_encoded_value
A sufficiently mad compiler optimiser can take undefined behaviour
according to the C standard as an opportunity to remove code. Since
"data + size" might be seen to be past the end of an array,
calculating such an expression is UB.
_mul_overflow is infrastructure for later patches.
* bucomm.h (_mul_overflow): Define.
* dwarf.c (get_encoded_value): Avoid pointer UB.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 85d21eb..74efc33 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2021-05-15 Alan Modra <amodra@gmail.com> + + * bucomm.h (_mul_overflow): Define. + * dwarf.c (get_encoded_value): Avoid pointer UB. + 2021-05-13 Alan Modra <amodra@gmail.com> PR 27861 |