Closed Bug 948233 Opened 11 years ago Closed 11 years ago

Improper OOM check in DoCompareFallback

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla29
Tracking Status
firefox28 --- fixed
firefox29 --- fixed

People

(Reporter: decoder, Assigned: decoder)

References

(Blocks 1 open bug)

Details

(Keywords: crash, Whiteboard: [qa-])

Crash Data

Attachments

(1 file)

Attached patch js-setNext-oom.patch (deleted) — Splinter Review
In js::jit::DoCompareFallback we have the following code: > ICStub *doubleStub = compiler.getStub(compiler.getStubSpace(script)); > if (!stub) > return false; I think this is either a typo or some tasty copy-pasta. I changed stub to doubleStub and it fixed another OOM crasher for me. Jandem, can you review the attached patch since it's your code?
Attachment #8345050 - Flags: review?(jdemooij)
Attachment #8345050 - Flags: review?(jdemooij) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Christian: should this OOM fix be uplifted to Aurora 28 and Beta 27?
Flags: needinfo?(choller)
This one can safely be uplifted to Aurora at least.
Flags: needinfo?(choller)
Comment on attachment 8345050 [details] [diff] [review] js-setNext-oom.patch [Approval Request Comment] Bug caused by (feature/regressing bug #): N/A User impact if declined: Crashes with OOM conditions Testing completed (on m-c, etc.): A few days on mozilla-central Risk to taking this patch (and alternatives if risky): Not risky, patch is just fixing a null check (fixing a typo). String or IDL/UUID changes made by this patch: None
Attachment #8345050 - Flags: approval-mozilla-aurora?
Attachment #8345050 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
I don't think this needs QA verification. If anyone thinks that's a mistake please remove the [qa-] whiteboard tag and add the verifyme keyword.
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: