]> git.sesse.net Git - ffmpeg/commit
matroskadec: Fix overflow introduced in a569a7b3
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 6 Jul 2019 16:59:22 +0000 (18:59 +0200)
committerJames Almer <jamrial@gmail.com>
Sat, 6 Jul 2019 17:48:54 +0000 (14:48 -0300)
commiteb33be188d2acb99e8f0f6a5cb45c931ed947cd0
tree7b5ac2343569c2f00f76bf3a630cfc4f7b8228d3
parentb9a6106842d0e6e65a040fd20d5e8a66350617c5
matroskadec: Fix overflow introduced in a569a7b3

This commit fixes an overflow introduced in a569a7b3 that affected EBML
elements that the Matroska demuxer doesn't want to parse like CRC-32
elements. The return value of avio_skip (the new position on success or
an AVERROR on failure) has been assigned to an integer which meant that
new positions in the range of 2GB to 4GB-1 etc. were considered errors.

Fixes ticket #8001.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/matroskadec.c