diff options
author | Simon Warta <[email protected]> | 2015-08-10 22:53:58 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-08-10 23:00:30 +0200 |
commit | 170cd1c2b92de39cd6a5f6adae56b470f0bf3898 (patch) | |
tree | 62cddee633a8225f813a3422ccb79492d9134cf7 /src/build-data/sphinx | |
parent | 480999c2820b0da995108d7474a74755cafd2924 (diff) |
Avoid integer overlow in string->uint32 converter
On systems where unsigned long is uint64 (typically 64 bit systems), a
string containing a number greater than 2^32-1 was sucessfully converted
to a uint64 and than reduced to uint32, causing an overflow. E.g.
to_u32bit("4294967296") was 0 and to_u32bit("4294967297") was 1.
Diffstat (limited to 'src/build-data/sphinx')
0 files changed, 0 insertions, 0 deletions