Closed
Bug 776661
Opened 13 years ago
Closed 13 years ago
silk_get_TOC doesn't zero out the entire silk_TOC_struct
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
Details
Attachments
(1 file, 1 obsolete file)
2.79 KB,
patch
|
rillian
:
review+
|
Details | Diff | Splinter Review |
/media/storage/moz/mozilla-inbound/media/libopus/silk/dec_API.c:360:39: warning: 'silk_memset' call operates on objects of type 'silk_TOC_struct' while the size is based on a
different type 'silk_TOC_struct *' [-Wsizeof-pointer-memaccess]
silk_memset( Silk_TOC, 0, sizeof( Silk_TOC ) );
~~~~~~~~ ^~~~~~~~
/media/storage/moz/mozilla-inbound/media/libopus/silk/dec_API.c:360:39: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?
silk_memset( Silk_TOC, 0, sizeof( Silk_TOC ) );
^~~~~~~~
1 warning generated.
Assignee | ||
Comment 1•13 years ago
|
||
Comment 2•13 years ago
|
||
Analysis by :derf from #developers on irc:
This doesn't affect our code; silk_get_TOC() is never called; it's left over code used by some other consumers of the SILK codec outside the opus tree.
If it were called, it's probably low risk, since it would zero at least the first field, and the other fields are initialized explicitly, assuming the caller uses nFramesPerPayload consistently.
Comment 3•13 years ago
|
||
Comment on attachment 645035 [details] [diff] [review]
Patch (v1)
Fine with me, but please add it as an external patch file in the libopus directory and change update.sh to apply it.
Attachment #645035 -
Flags: review?(giles) → review+
Comment 4•13 years ago
|
||
Updated to patch to conform to local style for maintaining differences from upstream. Carrying forward my own r+.
Attachment #645035 -
Attachment is obsolete: true
Attachment #645075 -
Flags: review+
Updated•13 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 6•13 years ago
|
||
Target Milestone: --- → mozilla17
Comment 7•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 8•13 years ago
|
||
This was committed upstream as http://git.xiph.org/?p=opus.git;a=commit;h=622046c1f1230e107664e35873d46b731f32df41
You need to log in
before you can comment on or make changes to this bug.
Description
•