Closed Bug 1245517 Opened 8 years ago Closed 8 years ago

[Static Analysis][Unchecked return value] In function intrinsic_FinishBoundFunctionInit

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1245048
Tracking Status
firefox47 --- affected

People

(Reporter: andi, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: coverity, Whiteboard: CID 1351131)

Attachments

(1 file)

The Static Analysis tool Coverity added that return value of function call: GetPrototype
>>    // 9.4.1.3 BoundFunctionCreate, steps 2-3,8.
>>    RootedObject proto(cx);
>>    GetPrototype(cx, targetObj, &proto);
>>    if (bound->getProto() != proto) {

Looking other the code in place where GetPrototype is used we can see that almost every time it's value is checked. This check is useless if the proto type of targetObj is not Lazy.
Attachment #8715321 - Flags: review?(jorendorff)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Attachment #8715321 - Flags: review?(jorendorff)
Assignee: bpostelnicu → nobody
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: