Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2014 08:13:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 191263] New: [patch] dd(1): Incorrect casting of arguments
Message-ID:  <bug-191263-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191263

            Bug ID: 191263
           Summary: [patch] dd(1): Incorrect casting of arguments
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: will@worrbase.com

Created attachment 144014
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=144014&action=edit
Better argument handling patch

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.

Attached is a patch that removes the pointless casts, and detects negative
numbers slightly more reliably.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191263-8>