diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2024-05-27 16:31:20 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2024-06-21 10:34:23 +0200 |
commit | d69c53f73dae181c79f6ec6c7276a172476a2728 (patch) | |
tree | a8b3bbf854e45892067954889819e4fcd04b707b /libcpp | |
parent | 9aa8324e8a2c992593591d965b3e2d527ed891d3 (diff) | |
download | gcc-d69c53f73dae181c79f6ec6c7276a172476a2728.zip gcc-d69c53f73dae181c79f6ec6c7276a172476a2728.tar.gz gcc-d69c53f73dae181c79f6ec6c7276a172476a2728.tar.bz2 |
ada: Fix bogus Address Sanitizer stack-buffer-overflow on packed record equality
We set DECL_BIT_FIELD optimistically during the translation of record types
and clear it afterward if needed, but fail to clear other attributes in the
latter case, which fools the logic of the Address Sanitizer.
gcc/ada/
* gcc-interface/utils.cc (clear_decl_bit_field): New function.
(finish_record_type): Call clear_decl_bit_field instead of clearing
DECL_BIT_FIELD manually.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions