OSDN Git Service

asfdec: only set asf_pkt->data_size after sanity checks
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Wed, 6 Jan 2016 06:34:42 +0000 (07:34 +0100)
committerAnton Khirnov <anton@khirnov.net>
Thu, 7 Jan 2016 07:20:21 +0000 (08:20 +0100)
commitc69461d73797e02e7a3ab4316050c241fa91f53f
tree8695fa02530cf856fb015489ca3542ef1ed47e32
parentd1cd20e4e33f8139e150034b3c457302312d81bd
asfdec: only set asf_pkt->data_size after sanity checks

Otherwise invalid values are used unchecked in the next run.
This can cause NULL pointer dereferencing.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Alexandra Hájková <alexandra.khirnova@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/asfdec.c