Bugzilla – Bug 138290
dvbd-0.7.7-10: array subscript out of range
Last modified: 2007-06-05 11:20:47 UTC
just tried to compile package dvbd-0.7.7-10 with a non standard version of the GNU C compiler It said remux.c:467: warning: array subscript out of range remux.c:468: warning: array subscript out of range The source code is uint8_t b[3]; vring_peek( rem, b, 4, 0); if ( b[0] == 0x00 && b[1] == 0x00 && b[2] == 0x01 && b[3] == 0xb3) found = 4; Clearly broken code. b[ 3] doesn't exist. Suggest make local array one bigger. I tried to email the author [ jak@users.sourceforge.net ] , but got no answer.
thanks for the report. I'll look into this. It might very well be that this is an error in one of my patches and Johns original code is fine.
Ok, it was none of my patches :-) I have submitted a fixed version to source repository which will appear in one of the next builds of 10.1 alpha. If you need a 10.0 rpm let me know and i'll build you one. Thanks again for the report!