Closed Bug 333637 Opened 19 years ago Closed 17 years ago

PR_CreateProcess() function drops empty string parameters

Categories

(NSPR :: NSPR, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aleksey, Assigned: wtc)

Details

Attachments

(1 file, 1 obsolete file)

E.g. there is no way to execute the following command line: something.exe "" something.txt because assembleCmdLine() function in ntmisc.c file creates the following command line: something.exe something.txt The patch is coming.
Attached patch Patch (obsolete) — Splinter Review
Attachment #218094 - Flags: review?
Comment on attachment 218094 [details] [diff] [review] Patch r=wtc. Thanks for the patch. Have you tested this patch? (I may be too busy to test the patch.) >+ if ((**arg) == '\0' || strpbrk(*arg, " \f\n\r\t\v")) { > argNeedQuotes = 1; > } I'm curious why you put parentheses around **arg.
Attachment #218094 - Flags: review? → review+
hm... it looks better? :) yes, I did test it though not very extensivly.
Target Milestone: --- → 4.7
QA Contact: wtchang → nspr
is this ready for check in?
Yes, it is. Sorry, I forgot to check in this patch. I just checked in this patch on the NSPR trunk for NSPR 4.7. Checking in ntmisc.c; /cvsroot/mozilla/nsprpub/pr/src/md/windows/ntmisc.c,v <-- ntmisc.c new revision: 3.22; previous revision: 3.21 done
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Attachment #218094 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: