Bugzilla – Bug 158609
dvbstream-0.6-6: array subscript out of range
Last modified: 2009-10-23 23:47:16 UTC
I just tried to compile package dvbstream-0.6-6 with the Intel C compiler. It said mpegtools/remux.c(468): warning #175: 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; I agree with the compiler. b[ 3] does not exist. Suggest code rework. I have reported this once before, as part of bug 129939, but nothing seems to have happened for five months.
Still broken in the version shipped in Suse Linux 10.1
Moving it back to the screening team is counterproductive.
Still broken in Suse Linux 10.2 Beta 1. How long should this bug remain before someone fixes it ?
Feel free to close as duplicate of Bug #235591.
(In reply to comment #4) > Feel free to close as duplicate of Bug #235591. Still broken a couple of years later in version 0.6-138.42
David, in case the issues are not introduced by a patch local to openSUSE please report the issues upstream. Packagers, please do not add openSUSE-local patches to fix this kind of errors but forward the bugs upstream and close the bugs as RESOLVED UPSTREAM. Note that it is perfectly fine to have "resource leaks" at the end of a program as the kernel will clean up for you. Manually freeing them only increases binary size and runtime.
Thanks! https://sourceforge.net/tracker/?func=detail&aid=2885125&group_id=50669&atid=460565