diff options
author | Alan Somers <asomers@FreeBSD.org> | 2017-08-25 15:31:55 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2017-08-25 15:31:55 +0000 |
commit | 77a798b30ae43e8aac56a124e159b0b8624f4195 (patch) | |
tree | 94a2a49eef9f2c2f5ccb8d27f072ed0d72de597e /usr.sbin/makefs | |
parent | e71fe5ce0af907489aee3dbc07719ba2336639f2 (diff) | |
download | src-77a798b30ae43e8aac56a124e159b0b8624f4195.tar.gz src-77a798b30ae43e8aac56a124e159b0b8624f4195.zip |
dd(1): Incorrect casting of arguments
dd(1) casts many of its numeric arguments from uintmax_t to intmax_t and
back again to detect whether or not the original arguments were negative.
This is not correct, and causes problems with boundary cases, for example
when count is SSIZE_MAX-1.
PR: 191263
Submitted by: will@worrbase.com
Reviewed by: pi, asomers
MFC after: 3 weeks
Notes
Notes:
svn path=/head/; revision=322893
Diffstat (limited to 'usr.sbin/makefs')
0 files changed, 0 insertions, 0 deletions