[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
Mon Jun 9 10:40:27 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190735

--- Comment #4 from commit-hook at freebsd.org ---
A commit references this bug:

Author: jilles
Date: Mon Jun  9 10:39:56 UTC 2014
New revision: 267265
URL: http://svnweb.freebsd.org/changeset/base/267265

Log:
  truncate: Detect integer overflow, fix relative sizes, add tests.

  The change to expand_number (r204654) broke detection of too large sizes and
  relative sizes ('+'/'-').

  Also add some tests.

  PR:        190735
  Submitted by:    Kirk Russell
  MFC after:    1 week

Changes:
  head/etc/mtree/BSD.tests.dist
  head/usr.bin/truncate/Makefile
  head/usr.bin/truncate/tests/
  head/usr.bin/truncate/tests/Makefile
  head/usr.bin/truncate/tests/truncate_test.sh
  head/usr.bin/truncate/truncate.c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list