"don't pass in arithmetic to create a CheckedInt" clang-plugin didn't detect bug 1484910
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Tracking
(Not tracked)
People
(Reporter: Waldo, Unassigned)
Details
(Keywords: csectype-intoverflow, sec-audit)
https://hg.mozilla.org/integration/autoland/rev/b32055608807
is a failure our clang plugin should have caught, as arithmetic on unchecked values that's used to create a CheckedInt (noticed in scrollby in IRC, I'm not CCed on the bug right now):
https://searchfox.org/mozilla-central/source/build/clang-plugin/ArithmeticArgChecker.cpp
So why didn't it?
(filed as security/hidden until we figure out whether a fixed analysis detects any other problems like this -- if there aren't any it's fine to open this up)
| Reporter | ||
Comment 1•7 years ago
|
||
And now that I've been CC'd on bug 1484910, I see this might be a dup of bug 1484140. I'd appreciate a CC there -- and whatever analysis that bug is doing really ought be reformulated into clang-plugin static analysis.
| Reporter | ||
Comment 2•7 years ago
|
||
CCing the original plugin author from bug 867348...
Updated•7 years ago
|
Comment 3•7 years ago
|
||
Jeff: did this turn out to be a dupe of bug 1484140 or is there enough difference here to keep it?
Comment 4•4 years ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:andi, since the bug has high severity, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 5•4 years ago
|
||
Let's close this and if the need really reapers we can reopen it.
Updated•4 years ago
|
Updated•1 year ago
|
Description
•