OSDN Git Service

avformat/nistspheredec: check sscanf() success before using the result
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 19 Dec 2013 19:48:51 +0000 (20:48 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 19 Dec 2013 20:46:47 +0000 (21:46 +0100)
commit8fe06e7ae8ffde7d4b5eef04a20c9faa45f61439
tree10cfdc79321bbfb9f7ecd18f1334631563ef3c22
parentb3f44eafa5a8748f777d0935d6e5562a604d8770
avformat/nistspheredec: check sscanf() success before using the result

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f935c3c6c1a_7413_nist_pcms8.nist
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/nistspheredec.c