diff options
author | truckman <truckman@FreeBSD.org> | 2016-05-25 15:49:29 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2016-05-25 15:49:29 +0000 |
commit | 1b6bea5af7a2f9cfe3b236490851d8df4e27098d (patch) | |
tree | 6e139f6374a5415b3b5ad88c8a1ccd61e7808d06 /lib/libc | |
parent | 4122004b6c02f0c54d5381e35543c4413bee2cd4 (diff) | |
download | FreeBSD-src-1b6bea5af7a2f9cfe3b236490851d8df4e27098d.zip FreeBSD-src-1b6bea5af7a2f9cfe3b236490851d8df4e27098d.tar.gz |
Fix a couple of Coverity Unintended sign extension sign extension
defects. When shifting an unsigned byte into the upper 8 bits of
an int and the resulting value is greater than 0x7FFFFFF, the result
will be sign extended when converting to a 64 bit unsigned long.
Fix by casting to (uint64_t) before the shift.
Reported by: Coverity
CID: 1356044, 1356045
Reviewed by: ken
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions