Revision c934562c libavcodec/vorbis_dec.c

View differences:

libavcodec/vorbis_dec.c
97 97
    uint_fast16_t type;
98 98
    uint_fast32_t begin;
99 99
    uint_fast32_t end;
100
    uint_fast32_t partition_size;
100
    unsigned      partition_size;
101 101
    uint_fast8_t  classifications;
102 102
    uint_fast8_t  classbook;
103 103
    int_fast16_t  books[64][8];
......
655 655
        if (res_setup->begin>res_setup->end ||
656 656
            res_setup->end > vc->avccontext->channels * vc->blocksize[1] / (res_setup->type == 2 ? 1 : 2) ||
657 657
            (res_setup->end-res_setup->begin) / res_setup->partition_size > V_MAX_PARTITIONS) {
658
            av_log(vc->avccontext, AV_LOG_ERROR, "partition out of bounds: type, begin, end, size, blocksize: %"PRIdFAST16", %"PRIdFAST32", %"PRIdFAST32", %"PRIdFAST32", %"PRIdFAST32"\n", res_setup->type, res_setup->begin, res_setup->end, res_setup->partition_size, vc->blocksize[1] / 2);
658
            av_log(vc->avccontext, AV_LOG_ERROR, "partition out of bounds: type, begin, end, size, blocksize: %"PRIdFAST16", %"PRIdFAST32", %"PRIdFAST32", %u, %"PRIdFAST32"\n", res_setup->type, res_setup->begin, res_setup->end, res_setup->partition_size, vc->blocksize[1] / 2);
659 659
            return -1;
660 660
        }
661 661

  

Also available in: Unified diff