Bug#700901: Off-by-one error in array definition

Michael Tautschnig mt at debian.org
Tue Feb 19 00:13:43 UTC 2013


Package: gst-plugins-bad0.10
Version: 0.10.23-7.1
Usertags: goto-cc

While building the package using our research compiler infrastructure we noticed
that the array _mxf_ul_table has conflicting declarations:

- gst/mxf/mxful.h declares extern const MXFUL _mxf_ul_table[MXF_UL_MAX]; with
  MXF_UL_MAX=134
- gst/mxf/mxful.c defines const MXFUL _mxf_ul_table[] = { ... } with 133 entries
  only

The declaration in mxful.h should use _mxf_ul_table[MXF_UL_MAX-1] as otherwise
invalid memory accesses may occur.

Best,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gstreamer-maintainers/attachments/20130219/968acc37/attachment.pgp>


More information about the pkg-gstreamer-maintainers mailing list