Closed Bug 1533623 Opened 7 years ago Closed 4 years ago

"don't pass in arithmetic to create a CheckedInt" clang-plugin didn't detect bug 1484910

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

defect
Not set
critical

Tracking

(Not tracked)

RESOLVED INVALID

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)

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.

CCing the original plugin author from bug 867348...

Group: firefox-build-security → firefox-core-security

Jeff: did this turn out to be a dupe of bug 1484140 or is there enough difference here to keep it?

Flags: needinfo?(jwalden)
Keywords: sec-audit

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.

Flags: needinfo?(jwalden) → needinfo?(bpostelnicu)

Let's close this and if the need really reapers we can reopen it.

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(bpostelnicu)
Resolution: --- → INVALID
Product: Firefox Build System → Developer Infrastructure
Group: firefox-core-security
You need to log in before you can comment on or make changes to this bug.