Changeset 7e4e010b in ffmpeg


Ignore:
Timestamp:
Jan 9, 2015, 2:44:31 PM (10 years ago)
Author:
Anton Khirnov <anton@khirnov.net>
Branches:
master
Children:
1cf0f27, 51da7d02
Parents:
2dbd35b0
git-author:
Anton Khirnov <anton@khirnov.net> (01/01/15 16:56:56)
git-committer:
Anton Khirnov <anton@khirnov.net> (01/09/15 14:44:31)
Message:

mpeg4audio: check the init_get_bits() return value

Fixes possible invalid reads.

CC:libav-stable@libav.org

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libavcodec/mpeg4audio.c

    r2dbd35b0 r7e4e010b  
    8181{
    8282    GetBitContext gb;
    83     int specific_config_bitindex;
     83    int specific_config_bitindex, ret;
    8484
    85     init_get_bits(&gb, buf, bit_size);
     85    ret = init_get_bits(&gb, buf, bit_size);
     86    if (ret < 0)
     87        return ret;
    8688    c->object_type = get_object_type(&gb);
    8789    c->sample_rate = get_sample_rate(&gb, &c->sampling_index);
Note: See TracChangeset for help on using the changeset viewer.