Closed Bug 576214 Opened 14 years ago Closed 14 years ago

stack.js modifications for 4.5

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ehren.m, Assigned: ehren.m)

Details

Attachments

(2 files, 2 obsolete files)

Attached patch patch (obsolete) — Splinter Review
For a couple of reasons, porting the walk_tree portion of stack.js to 4.5 wasn't quite feasible. Reading the old bugs on this analysis, it was once implemented using a similar technique to the one I'm posting, but that was changed because of problems with COND_EXPRs. This should behave identically to the old analysis in 4.3 though.
 
Note: you can trick it into a false positive by writing this semi-invalid code:

StackClass* s
void *v = ::operator new(314);
s = v;

not really an issue though.
Attachment #455399 - Flags: review?(tglek)
Attached file warning list
this reports 48 NS_STACK_CLASS abuses, many of which are due to nsAutoString
Comment on attachment 455399 [details] [diff] [review]
patch

Looks good, might wanna document the false positive in a testcase
Attachment #455399 - Flags: review?(tglek) → review+
Attached patch patch (obsolete) — Splinter Review
documents false positive (carrying over r+)
Attachment #455399 - Attachment is obsolete: true
Attachment #466449 - Flags: review+
Attached patch patchSplinter Review
adding commit info
Attachment #466449 - Attachment is obsolete: true
Attachment #466465 - Flags: review+
Assignee: nobody → ehren.m
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: