asfdec_o: only set asf_pkt->data_size after sanity checks
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 5 Jan 2016 12:06:51 +0000 (13:06 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 14 Jan 2016 23:36:41 +0000 (00:36 +0100)
commit763c572801a3db1cc7a2f07a52fee9d2e35ec95a
tree1cf812390eacc1c0319b37fbd424450a6d1128af
parentf8bc0137bdf8da8806ef75d30bb749fcc301bb35
asfdec_o: 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.

Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavformat/asfdec_o.c