This bug is reported by Greg Scallan <email@example.com>. Suppose we have a command line option 'i' that has an associated value. It is specified as "i:" in the third parameter for PL_CreateOptState, and we would type "-i string" on the command line. If we accidentally type "-im string" on the command line, PL_GetNextOpt asserts. While "-im string" is indeed malformed, an assertion failure is not an appropriate response. Instead, PL_GetNextOpt should return PL_OPT_BAD to indicate that the option is invalid.
Status: NEW → RESOLVED
Last Resolved: 20 years ago
Resolution: --- → FIXED
Fixed on the tip. /cvsroot/mozilla/nsprpub/lib/libc/src/plgetopt.c, revision 3.2. Also fixed in the internal cvs repository. /m/src/ns/nspr20/lib/libc/src/plgetopt.c, revision 2.2.
spider set as qa contact to verify
Closed the bug.
NSPR now has its own Bugzilla product. Moving this bug to the NSPR product.
You need to log in before you can comment on or make changes to this bug.