Closed
Bug 204731
Opened 22 years ago
Closed 22 years ago
Variant properties, if empty cause a crash
Categories
(Core :: XPConnect, defect)
Tracking
()
VERIFIED
FIXED
mozilla1.4final
People
(Reporter: dbradley, Assigned: dbradley)
References
Details
(Keywords: crash)
Attachments
(1 file)
601 bytes,
patch
|
adamlock
:
review+
alecf
:
superreview+
asa
:
approval1.4+
|
Details | Diff | Splinter Review |
When retrieving a variant property, if the variant is empty, it causes a crash.
This is due to the fact that the code was testing the return value for "empty"
to decided if it actually returned a value. Solution is to initialize the JS's
return value parameter to JSVAL_VOID.
Patch coming up.
Assignee | ||
Comment 1•22 years ago
|
||
Assignee | ||
Comment 2•22 years ago
|
||
Comment on attachment 122664 [details] [diff] [review]
Simple one line initialization of *retval
Looking for reviews for this simple one liner
Attachment #122664 -
Flags: superreview?(alecf)
Attachment #122664 -
Flags: review?(adamlock)
Comment on attachment 122664 [details] [diff] [review]
Simple one line initialization of *retval
r=adamlock
Attachment #122664 -
Flags: review?(adamlock) → review+
Comment 4•22 years ago
|
||
Comment on attachment 122664 [details] [diff] [review]
Simple one line initialization of *retval
sr=alecf
Attachment #122664 -
Flags: superreview?(alecf) → superreview+
Assignee | ||
Comment 5•22 years ago
|
||
Comment on attachment 122664 [details] [diff] [review]
Simple one line initialization of *retval
I'd like to get this in to 1.4, it's a one liner with little risk, and prevents
a potential crash in the in the IDispatch code when properties hold an empty
variant.
Attachment #122664 -
Flags: approval1.4?
Assignee | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
Comment 6•22 years ago
|
||
Comment on attachment 122664 [details] [diff] [review]
Simple one line initialization of *retval
a=asa (on behalf of drivers) for checkin to 1.4.
Attachment #122664 -
Flags: approval1.4? → approval1.4+
Assignee | ||
Comment 7•22 years ago
|
||
Patch checked in
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.4final
You need to log in
before you can comment on or make changes to this bug.
Description
•