simon-git: puzzles (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sun Sep 1 22:31:26 BST 2019
TL;DR:
907c42b Fix build failure reported in gcc 9.
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2019-09-01 22:31:26
commit 907c42bcf0f06826279d5be91be7f7f9c45876d9
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=907c42bcf0f06826279d5be91be7f7f9c45876d9;hp=e2135d51c51a39f05e2c20c70111b27c15952803
Author: Simon Tatham <anakin at pobox.com>
Date: Sun Sep 1 22:26:22 2019 +0100
Fix build failure reported in gcc 9.
Apparently gcc 9 is clever enough to say 'Hey, runtime field width in
an sprintf targeting a fixed-size buffer!', but not clever enough to
notice that the width was computed earlier as the max of lots of
default-width sprintfs into the same buffer (so _either_ it's safe, or
else - on a hypothetical platform with a 263-bit int - the damage was
already done).
Added a bounds check or two to keep it happy.
twiddle.c | 11 +++++++++++
1 file changed, 11 insertions(+)
More information about the tartarus-commits
mailing list