* [Buildroot] [Bug 10211] New: mkpasswd.c:183: pointless test ?
@ 2017-08-09 20:23 bugzilla at busybox.net
2018-01-10 22:08 ` [Buildroot] [Bug 10211] " bugzilla at busybox.net
0 siblings, 1 reply; 2+ messages in thread
From: bugzilla at busybox.net @ 2017-08-09 20:23 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=10211
Bug ID: 10211
Summary: mkpasswd.c:183: pointless test ?
Product: buildroot
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: trivial
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: dcb314 at hotmail.com
CC: buildroot at uclibc.org
Target Milestone: ---
buildroot-2017.08-rc1/package/mkpasswd/mkpasswd.c:183]: (style) Checking if
unsigned variable 'rounds' is less than zero.
Source code is
rounds = strtol(optarg, &p, 10);
if (p == NULL || *p != '\0' || rounds < 0) {
Maybe a call to strtoul would be better ?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] [Bug 10211] mkpasswd.c:183: pointless test ?
2017-08-09 20:23 [Buildroot] [Bug 10211] New: mkpasswd.c:183: pointless test ? bugzilla at busybox.net
@ 2018-01-10 22:08 ` bugzilla at busybox.net
0 siblings, 0 replies; 2+ messages in thread
From: bugzilla at busybox.net @ 2018-01-10 22:08 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=10211
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|NEW |RESOLVED
--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
This code comes from the whois project at
https://github.com/rfc1036/whois/blob/next/mkpasswd.c. If there are any issues,
please report them to the upstream project. We can then backport the fix, or
upgrade to a newer version.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-10 22:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-09 20:23 [Buildroot] [Bug 10211] New: mkpasswd.c:183: pointless test ? bugzilla at busybox.net
2018-01-10 22:08 ` [Buildroot] [Bug 10211] " bugzilla at busybox.net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox