Closed Bug 549747 Opened 14 years ago Closed 14 years ago

Crash with null texture argument to framebufferTexture2D [@ mozilla::WebGLContext::FramebufferTexture2D(unsigned int, unsigned int, unsigned int, nsIWebGLTexture*, int) ]

Categories

(Core :: Graphics: CanvasWebGL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a3

People

(Reporter: mstange, Assigned: mstange)

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

Attached patch patchSplinter Review
WebGLContext::FramebufferTexture2D calls tex->GLName() without null-checking tex.
While looking for other occurrences of that problem in the file I found a bad null check of "prog" in WebGLContext::ValidateProgram and I figured it's not worth creating a separate patch for that one.

Where would a crashtest go? I didn't find any WebGL tests.
Attachment #429854 - Flags: review?(vladimir)
Comment on attachment 429854 [details] [diff] [review]
patch

This looks ok, thanks -- no crashtests set up yet, feel free to create the directory though (make a canvas/canvas/test/webgl directory)
Attachment #429854 - Flags: review?(vladimir) → review+
http://hg.mozilla.org/mozilla-central/rev/e3c94358dfa5
http://hg.mozilla.org/mozilla-central/rev/04497f41d4e0

I didn't add a test - I'd like a separate review on the test infrastructure so I'll do it in a separate bug.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a3
Crash Signature: [@ mozilla::WebGLContext::FramebufferTexture2D(unsigned int, unsigned int, unsigned int, nsIWebGLTexture*, int) ]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: