summaryrefslogtreecommitdiff
path: root/tests/test_write_dynamic.c
diff options
context:
space:
mode:
authorSertonix2026-04-15 16:41:46 +0200
committerJulien Voisin2026-04-20 23:15:31 +0200
commit5ac7e1b695281ebdcfe365176d40053764d44684 (patch)
tree4a3419f75c2bf012f5d6abbd0ee35a5a5dbe46fe /tests/test_write_dynamic.c
parent57e658873fe794a654cc773b521dd8fdf3ddd9ed (diff)
Avoid overflow warnings in {v,}sprintfHEADmaster
gcc does not seem to reliably notice that the if condition makes overflows impossible in the code. To please the compiler we can use the __bos flag to return 0 (instead of -1) when the size is unknown. Fixes https://github.com/jvoisin/fortify-headers/issues/62 Fixes https://github.com/jvoisin/fortify-headers/issues/68 Fixes https://github.com/jvoisin/fortify-headers/issues/80
Diffstat (limited to 'tests/test_write_dynamic.c')
0 files changed, 0 insertions, 0 deletions