diff options
author | Garrett Wollman <wollman@FreeBSD.org> | 2018-05-23 02:51:56 +0000 |
---|---|---|
committer | Garrett Wollman <wollman@FreeBSD.org> | 2018-05-23 02:51:56 +0000 |
commit | 0840e619bb18986a24a001f81c907f385bb2d3cf (patch) | |
tree | d2539c930fa8d80ff0525e442c704634d0ee53de /README | |
parent | 8a656309b396482b40b5e78a1c47b5d06d85fd58 (diff) | |
download | src-0840e619bb18986a24a001f81c907f385bb2d3cf.tar.gz src-0840e619bb18986a24a001f81c907f385bb2d3cf.zip |
Move unsigned limits to a separate table/recognizer and display them
using the appropriate (unsigned) format specification. This prevents
integer overflow when ULLONG_MAX and (on some architectures) ULONG_MAX
are used to initialize an intmax_t and then displayed as the signed
value -1. (A different approach was suggested in the bug report,
which I did not use.) If other limits are defined to be unsigned,
they could be moved here.
PR: 164049
Reported by: Marcus Reid
Notes
Notes:
svn path=/head/; revision=334070
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions