[Bug 191263] New: [patch] dd(1): Incorrect casting of arguments

看板FB_bugs作者時間11年前 (2014/06/22 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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. _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
文章代碼(AID): #1JffI2xZ (FB_bugs)