Closed Bug 444233 Opened 13 years ago Closed 13 years ago
Passing JS object to SVal
Storage Statement Binder causes segfault [@ Get UTCTime - js _Date Is Valid - JSVal Storage Statement Binder]
Using mozStorageStatementWrapper and passing an array ([1,2]) into params causes segfault. Will attach test case and GDB backtrace.
Severity: normal → critical
Summary: Passing JS object to SValStorageStatementBinder causes segfault → Passing JS object to SValStorageStatementBinder causes segfault [@ GetUTCTime - js_DateIsValid - JSValStorageStatementBinder]
This is a testcase + the fix. This is a regression from bug 385393. In that bug, brendan made the "is this object a date" test conditional on being called from an interpreted function (with an argv array), but we need to the test unconditionally and only throw when called from an interpreted function.
Assignee: nobody → mrbkap
Status: NEW → ASSIGNED
Attachment #329849 - Flags: review?(shaver)
Comment on attachment 329849 [details] [diff] [review] Proposed fix r=shaver, a comment in GetUTCTime explaining that this is why we do the vp thing would be extra-good.
Attachment #329849 - Flags: review?(shaver) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
13 years ago
Status: RESOLVED → VERIFIED
As comment 3 said there was also a test checked-in. Updating some flags... Do we also need this on 1.9.0.x branch? Bug 385393 was fixed a while ago during alpha 7 and alpha 8.
OS: Mac OS X → All
Product: Toolkit → Core
QA Contact: storage → general
Hardware: PC → All
Target Milestone: --- → mozilla1.9.1a1
Comment on attachment 329849 [details] [diff] [review] Proposed fix This applies to the 1.9 branch.
Attachment #329849 - Flags: approval126.96.36.199?
Comment on attachment 329849 [details] [diff] [review] Proposed fix Approved for 188.8.131.52. Please land in CVS. a=ss
Attachment #329849 - Flags: approval184.108.40.206? → approval220.127.116.11+
Fix checked into the 1.9 branch.
Crash Signature: [@ GetUTCTime - js_DateIsValid - JSValStorageStatementBinder]
You need to log in before you can comment on or make changes to this bug.