|
From: | Christopher Wellons |
Subject: | Re: I created a faster JSON parser |
Date: | Mon, 11 Mar 2024 09:47:53 -0400 |
User-agent: | NeoMutt/20170113 (1.7.2) |
did the fuzzer/sanitizer find it?
Clang, but not GCC, places a UBSan check on float to integer conversions, and that check was tripped when I fuzzed a Clang build. Example:
int main(void) { int x = 1e10; } Nothing from GCC: $ gcc -w -g3 -fsanitize=undefined example.c $ ./a.out $ But with Clang: $ clang -w -g3 -fsanitize=undefined example.c$ ./a.out example.c:3:13: runtime error: 1e+10 is outside the range of representable values of type 'int'
[Prev in Thread] | Current Thread | [Next in Thread] |