1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-27 08:00:11 +00:00
freebsd/bin/dd
Alan Somers af2b6af393 Fix integer overflow detection in dd
dd(1) tried to detect whether the seek offset would overflow, but it failed
to account for the case where the provided argument was negative and the
file was a regular file (negative seeks are allowed for character devices).
I fixed it, and added a regression test.

Reported by:	Coverity
CID:		1368659
MFC after:	3 weeks
Sponsored by:	Spectra Logic Corp
2017-05-31 16:07:32 +00:00
..
tests Fix integer overflow detection in dd 2017-05-31 16:07:32 +00:00
args.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
conv_tab.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
conv.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
dd.1 Fix indentation in dd(1) 2017-04-02 21:30:05 +00:00
dd.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
dd.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
extern.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
gen.c
Makefile MFH 2016-02-22 12:28:23 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
misc.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
position.c Fix integer overflow detection in dd 2017-05-31 16:07:32 +00:00
ref.ascii
ref.ebcdic
ref.ibm
ref.lcase
ref.obs_zeroes
ref.oldascii
ref.oldebcdic
ref.oldibm
ref.pareven
ref.parnone
ref.parodd
ref.parset
ref.swab
ref.ucase