Open Bug 548040 Opened 15 years ago Updated 3 years ago

getai test fails if you provide no command line arguments

Categories

(NSPR :: NSPR, defect)

defect

Tracking

(Not tracked)

People

(Reporter: bcombee, Unassigned)

Details

In testing on Android, I tried running the getai test not knowing that you had to provide a name on the command line. It failed with a segfault inside the OS code due to no parameter checking in the gethostbyname call. This test should provide an error message when the hostname is NULL or use a default known hostname.
Yes, we can use www.mozilla.org as the default hostname. We do that in the gethost.c test (where we use mcom.com as the default hostname): http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/nsprpub/pr/tests/gethost.c&rev=3.10&mark=53#53

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: wtc → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.