Closed Bug 504464 Opened 11 years ago Closed 10 years ago

nsCanvasRenderingContext2D::Restore checks to see if unsigned mSaveCount is negative

Categories

(Core :: DOM: Core & HTML, defect, trivial)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

References

(Blocks 1 open bug, )

Details

(Keywords: coverity)

Attachments

(1 file)

371     PRUint32 mSaveCount;
1073     if (mSaveCount < 0)
1074         return NS_ERROR_DOM_INVALID_STATE_ERR;
Keywords: coverity
Attached patch patchSplinter Review
Attachment #388836 - Flags: review?(vladimir)
http://hg.mozilla.org/mozilla-central/rev/77605790b96e
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Component: DOM: Mozilla Extensions → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.