This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12081 - compile warnings (out-of-bounds) in libfaad
Attached to Project:
Rockbox
Opened by Andree Buschmann (Buschel) - Tuesday, 26 April 2011, 08:07 GMT+2
Last edited by Andree Buschmann (Buschel) - Tuesday, 26 April 2011, 23:31 GMT+2
Opened by Andree Buschmann (Buschel) - Tuesday, 26 April 2011, 08:07 GMT+2
Last edited by Andree Buschmann (Buschel) - Tuesday, 26 April 2011, 23:31 GMT+2
|
DetailsMagnus Holmgren reported compiler warnings with GCC 4.6.0 in libfaad/decoder.c since r29778. The multiple warning starts at line 605: "warning: array subscript is above array bounds [-Warray-bounds]"
Reason for this is that I reduced MAX_CHANNELS to 2 (= stereo). The reported section in function create_channel_config() accesses channel_position[] at too large indices. I reviewed the code and did some changes: 1) comment create_channel_config() as this is only used to set variables which are not used later 2) let NeAACDecInit() and NeAACDecInit2() return an error if more than MAX_CHANNELS channels are recognized |
This task depends upon
Closed by Andree Buschmann (Buschel)
Tuesday, 26 April 2011, 23:31 GMT+2
Reason for closing: Accepted
Additional comments about closing: Validated by Magnus Holmgren, submitted with r29784.
Tuesday, 26 April 2011, 23:31 GMT+2
Reason for closing: Accepted
Additional comments about closing: Validated by Magnus Holmgren, submitted with r29784.
You don't seem to be a fan of #ifndef ROCKBOX?
No. And as our libfaad-implementation has already been altered quite a lot I see no reason in keeping it syncable until we do not switch to another implementation (e.g. ffmpeg or google).