|mar_read_entire_file| can leak file descriptor (command line build utility)

RESOLVED FIXED in Firefox 40

Status

()

defect
RESOLVED FIXED
4 years ago
10 months ago

People

(Reporter: erahm, Assigned: joseriosneto, Mentored)

Tracking

(Blocks 1 bug, {coverity})

unspecified
mozilla40
Points:
---
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(firefox40 fixed)

Details

(Whiteboard: [CID 1293422][lang=c++][good first bug])

Attachments

(1 attachment)

Coverity reports that |mar_read_entire_file| can leak file descriptor |f| if |fseeko| fails [1].

[1] https://hg.mozilla.org/mozilla-central/annotate/754579ec0e68/modules/libmar/verify/mar_verify.c#l38
Summary: |mar_read_entire_file| can leak file descriptor → |mar_read_entire_file| can leak file descriptor (command line build utility)
Mentor: erahm
Whiteboard: [CID 1293422] → [CID 1293422][lang=c++][good first bug]
(Assignee)

Comment 1

4 years ago
Hello Eric, can I take this bug?
Flags: needinfo?(erahm)
Hi José, thank you for the interest! The bug is available for you to work on, please let me know if you need help getting started.
Flags: needinfo?(erahm)
(Assignee)

Comment 3

4 years ago
Eric, here is a first patch of the solution.
Attachment #8602460 - Flags: review?(erahm)
Comment on attachment 8602460 [details] [diff] [review]
bug1161640_moving_fclose.patch

Thanks and much appreciated! If you'd like to help out some more there is also bug 1161666 and bug 1161686.

I'll land this tonight
Attachment #8602460 - Flags: review?(erahm) → review+
Flags: in-testsuite-
Target Milestone: --- → mozilla40
https://hg.mozilla.org/mozilla-central/rev/a808b9265d17
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.