Landing: 8c1b7e1d9f3d
Project / Subsystem
gcc / gcc/testsuite
Date
2026-08-29
Author
Georg-Johann Lay
Commit
8c1b7e1d9f3d8f52dd991060afbb34676e52d836
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/testsuite
- patch_id
- —
- commit_hash
- 8c1b7e1d9f3d8f52dd991060afbb34676e52d836
- source_type
- github
- headline
- Fix torture test for memmove overflow on 16-bit int systems
- tldr
- A torture test now uses a 32-bit integer type to prevent memmove overflow on systems with 16-bit ints.
- author
- Georg-Johann Lay
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • testsuite
- • integer overflow
- • memmove
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-29T00:00:00.000Z
This commit fixes a GCC torture test (pr121103-1.c) that failed due to a buffer overflow when using memmove. On systems where int is 16 bits, the destination buffer ‘B’ was only 7 bytes, but the test attempted to write 8 bytes. By changing the type of B.n to __INT32_TYPE__, the test now correctly accounts for the buffer size, resolving the overflow issue.