[PATCH] OpenBSD null environ handling in native messaging
Categories
(Toolkit :: Async Tooling, defect, P2)
Tracking
()
People
(Reporter: anton.v.asgeirsson, Unassigned)
Details
Attachments
(1 file)
|
853 bytes,
patch
|
kmag
:
feedback-
|
Details | Diff | Splinter Review |
After applying #1519750 to omni.ja and testing native messaging I noticed that the environ wasn't getting populated. What happens is that the stringArray() function accepts options.environ as null. wraps it in a char pointer and returns it. The char pointer is not NULL so the call to execve will not inherit the parent's environ.
I see a couple of ways to address this:
stringArray()should return null when it's param is null. I have included a patch for this.- The code in
subprocess_worker_unix.jscould check ifoptions.environmentis null before passing it as a param tostringArray(). This way maybe makes more sense if there are some edge cases in other OSes around a null environ that I'm not aware of.
Testing was done on OpenBSD 6.5 snapshots on firefox 65 and 66.
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
| Reporter | ||
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
The priority flag is not set for this bug.
:Yoric, could you have a look please?
For more information, please visit auto_nag documentation.
Do I understand correctly that this bug breaks features on *BSD?
No answer from reporter, so I guess it's not high priority.
Comment 7•3 years ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:Gijs, since the bug has high priority, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 8•3 years ago
|
||
Without more info it's not clear how to move forward here. We can reopen if more info becomes available.
Description
•