[PATCH] Fix for bug libstdc++/111102 pointer arithmetic on nullptr

2023-08-23 Thread Paul Dreik via Gcc-patches
This fixes pointer arithmetic made on a null pointer, which I found through fuzzing. Tested on debian/amd64. Thanks, Paul commit 78ac41590432f4f01036797fd9d661f6ed80cf37 (HEAD -> master) Author: Paul Dreik Date: Tue Aug

[PATCH] Fix for bug libstdc++/110860

2023-08-14 Thread Paul Dreik via Gcc-patches
The patch below fixes an issue with the fix already committed for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110860 which unfortunately was not sufficient for small magnitude floating point values. With the patch in place, the code now survives the fuzzing I used to find the problem in the f