Closed Bug 1209696 Opened 9 years ago Closed 9 years ago

Check the return value of fopen

Categories

(Core :: JavaScript: GC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox44 --- fixed

People

(Reporter: sfink, Assigned: sfink)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The hazard analysis uses ctypes to fopen a file but doesn't check whether it succeeded. When it fails, it's a null pointer dereference.
fix
Attachment #8667486 - Flags: review?(terrence)
Attachment #8667486 - Flags: review?(terrence) → review+
https://hg.mozilla.org/mozilla-central/rev/25a0211ff6a9
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: