summaryrefslogtreecommitdiff
path: root/tests/string_test.cpp
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2015-07-18 13:55:51 -0400
committerDaniel Micay <danielmicay@gmail.com>2015-07-23 18:55:46 -0400
commitfed2659869ec41a93f655be8058568ddab419e01 (patch)
tree5dca1c6f1f120a561d5279eb76816e94e210cb94 /tests/string_test.cpp
parent2565492db0d67b95348cd1c3026ed338ca59aa37 (diff)
add fortified implementations of fread/fwrite
A __size_mul_overflow utility is used to take advantage of the checked overflow intrinsics in Clang and GCC (>= 5). The fallback for older compilers is the optimized but less than ideal overflow checking pattern used in OpenBSD. Change-Id: Ibb0d4fd9b5acb67983e6a9f46844c2fd444f7e69
Diffstat (limited to 'tests/string_test.cpp')
0 files changed, 0 insertions, 0 deletions