diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2024-05-12 17:36:50 -0700 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2024-05-14 19:36:17 +0200 |
commit | 7343bd6a49c5e3fe622f0bf473c124947d5e1210 (patch) | |
tree | 918626406e3a7b0700e00a4de836fdb2343e6d9d /Makefile | |
parent | ad21b95c97cdb8741922d163f132e9c726c2ce5b (diff) |
malloc/memalign: avoid integer overflow
Check that the size passed to memalign() is not greater than PTRDIFF_MAX
before adjusting it, otherwise it may wrap around in the adjustment.
This fixes gcc testsuite test gcc.dg/torture/pr60092.c
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions