1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-09 13:42:56 +00:00
freebsd/sbin/camcontrol
Don Lewis e60dd0e86a 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
2016-05-25 15:49:29 +00:00
..
attrib.c
camcontrol.8
camcontrol.c Fix a couple of Coverity Unintended sign extension sign extension 2016-05-25 15:49:29 +00:00
camcontrol.h
epc.c Fix a couple of new instances of a false positive Coverity buffer 2016-05-25 15:43:01 +00:00
fwdownload.c
Makefile
Makefile.depend
modeedit.c
persist.c
progress.c
progress.h
util.c
zone.c Fix a couple of new instances of a false positive Coverity buffer 2016-05-25 15:43:01 +00:00