~ubuntu-branches/ubuntu/precise/libav/precise-security

« back to all changes in this revision

Viewing changes to libavcodec/pgssubdec.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2014-08-10 09:59:10 UTC
  • mfrom: (1.2.22)
  • Revision ID: package-import@ubuntu.com-20140810095910-4rvuwithraqubqvs
Tags: 4:0.8.15-0ubuntu0.12.04.1
* Update to 0.8.15 to fix multiple security issues (LP: #1354755)
* debian/patches/fix_ftbfs_ff_get_buffer.patch: Add more missing
  #includes for ff_get_buffer() to fix ftbfs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
    /* Decode rle bitmap length, stored size includes width/height data */
193
193
    rle_bitmap_len = bytestream_get_be24(&buf) - 2*2;
194
194
 
 
195
    if (buf_size > rle_bitmap_len) {
 
196
        av_log(avctx, AV_LOG_ERROR,
 
197
               "Buffer dimension %d larger than the expected RLE data %d\n",
 
198
               buf_size, rle_bitmap_len);
 
199
        return AVERROR_INVALIDDATA;
 
200
    }
 
201
 
195
202
    /* Get bitmap dimensions from data */
196
203
    width  = bytestream_get_be16(&buf);
197
204
    height = bytestream_get_be16(&buf);