diff options
| author | Aurelien Jarno <aurelien@aurel32.net> | 2022-10-10 00:39:33 +0200 |
|---|---|---|
| committer | Aurelien Jarno <aurelien@aurel32.net> | 2022-10-24 20:57:57 +0200 |
| commit | 9273b2d0e93e7355656cad3be3a1ca76489df483 (patch) | |
| tree | dc3ae588c816eff36f2e33bcd4b72d0cb8df880e /malloc/alloc_buffer_alloc_array.c | |
| parent | b357157361117182c7a68c90fda7ba431b64442c (diff) | |
| download | glibc-9273b2d0e93e7355656cad3be3a1ca76489df483.tar.xz glibc-9273b2d0e93e7355656cad3be3a1ca76489df483.zip | |
Avoid undefined behaviour in ibm128 implementation of llroundl (BZ #29488)
Detecting an overflow edge case depended on signed overflow of a long
long. Replace the additions and the overflow checks by
__builtin_add_overflow().
Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
(cherry picked from commit 2b5478569e72ee4820a6e163d306690c9c0eaf5e)
Diffstat (limited to 'malloc/alloc_buffer_alloc_array.c')
0 files changed, 0 insertions, 0 deletions
