Closed
Bug 995655
Opened 10 years ago
Closed 10 years ago
Fix -Wpointer-sign and -Wuinitialized warnings in libmar
Categories
(Toolkit :: Application Update, defect)
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: cpeterson, Assigned: cpeterson)
References
(Blocks 1 open bug)
Details
(Whiteboard: [qa-])
Attachments
(2 files)
994 bytes,
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
2.35 KB,
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
If mar_sign.c's import_signature() returns early, it can call fclose() on uninitialized FILE* local variables fpSrc, fpDest, and fpSigFile.
Attachment #8405792 -
Flags: review?(robert.strong.bugs)
Assignee | ||
Comment 1•10 years ago
|
||
Fix -Wpointer-sign warnings in mar_read.c modules/libmar/src/mar_read.c:564:29 [-Wpointer-sign] passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign modules/libmar/src/mar_read.c:565:29 [-Wpointer-sign] passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign modules/libmar/src/mar_read.c:565:53 [-Wpointer-sign] passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign
Attachment #8405793 -
Flags: review?(robert.strong.bugs)
Assignee | ||
Updated•10 years ago
|
Status: NEW → ASSIGNED
Summary: modules/libmar/sign/mar_sign.c:769:6: [-Wuninitialized] 'fpSrc' may be used uninitialized in this function → Fix -Wpointer-sign and -Wuinitialized warnings in libmar
Updated•10 years ago
|
Attachment #8405792 -
Flags: review?(robert.strong.bugs) → review+
Comment 2•10 years ago
|
||
Comment on attachment 8405793 [details] [diff] [review] fix-Wpointer-sign-warnings.patch Thanks!
Attachment #8405793 -
Flags: review?(robert.strong.bugs) → review+
Assignee | ||
Comment 3•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8b16eeaaf966 https://hg.mozilla.org/integration/mozilla-inbound/rev/d4806a83b2bd
status-firefox30:
--- → wontfix
status-firefox31:
--- → fixed
Comment 4•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8b16eeaaf966 https://hg.mozilla.org/mozilla-central/rev/d4806a83b2bd
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in
before you can comment on or make changes to this bug.
Description
•