[Bug 190735] truncate(1) integer overflow issues with size command line arg -- diff with unit tests attached
bz-noreply at freebsd.org
bz-noreply at freebsd.org
Sat Jun 7 16:24:08 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190735
Jilles Tjoelker <jilles at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Needs Triage |In Discussion
CC| |jilles at FreeBSD.org
--- Comment #1 from Jilles Tjoelker <jilles at FreeBSD.org> ---
This looks useful.
Is it possible to do without the new undocumented -D option? Perhaps you could
ktrace for truncate(2) calls or add numbers to error messages. (A truncate() to
something close to OFF_MAX should certainly not be expected to work, so
checking for sizes of files may not be sufficient.)
Instead of the PRIdMAX macro from <inttypes.h>, please use "jd".
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list