Closed
Bug 1302087
Opened 9 years ago
Closed 9 years ago
[Static Analysis][Missing break in switch] In function OutputTextureFunctionArgumentList
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox51 | --- | affected |
People
(Reporter: andi, Assigned: andi)
References
(Blocks 1 open bug)
Details
(Keywords: coverity, Whiteboard: CID 1372809)
Attachments
(1 obsolete file)
The Static Analysis tool Coverity detected that a break in switch is missing causing it to fall on the default branch:
>> case EbtSampler2DShadow:
>> out << ", int2 offset";
>> break;
>> case EbtSampler2DArrayShadow:
>> out << ", int2 offset";
>> break;
>> case EbtSamplerExternalOES:
>> out << ", int2 offset";
>> default:
>> UNREACHABLE();
I think that on case EbtSamplerExternalOES we should break the execution and we can also compact the switch statement a bit more.
Comment hidden (mozreview-request) |
Comment 2•9 years ago
|
||
mozreview-review |
Comment on attachment 8790256 [details]
Bug 1302087 - prevent fallback on default branch for case EbtSamplerCubeShadow.
https://reviewboard.mozilla.org/r/78164/#review76652
This is a third-party project. So we should just fix it there.
Attachment #8790256 -
Flags: review?(jmuizelaar) → review-
Assignee | ||
Comment 4•9 years ago
|
||
Hope this gets approved: https://github.com/google/angle/pull/4
I've pushed it on github to Angle repo.
Updated•9 years ago
|
Flags: needinfo?(mtseng)
Assignee | ||
Comment 5•9 years ago
|
||
This patch has also been submitted to google chromium reviewboard and has been accepted:
https://chromium-review.googlesource.com/#/c/390271/
Assignee | ||
Updated•9 years ago
|
Attachment #8790256 -
Attachment is obsolete: true
Assignee | ||
Comment 6•9 years ago
|
||
I think this should be closed since the patch has landed upstream.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•