avformat/aviobuf: Fix end check in put_str16()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 13 Jan 2016 01:31:59 +0000 (02:31 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 15 Jan 2016 11:30:40 +0000 (12:30 +0100)
commit90c2256ee52ca69ff16bf1d2f831a2ef8d6064eb
tree2e087d95298ecd4cc2673b4b1af7bd2f449b29e2
parentf459afdd7247b2803c615ec58cf7e642778245ed
avformat/aviobuf: Fix end check in put_str16()

Fixes out of array read
Fixes: 03c406ec9530e594a074ce2979f8a1f0/asan_heap-oob_7dec26_4664_37c52495b2870a2eaac65f53958e76c1.flac

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 115fb6d03ef6310732b42258d8c3cd1839cfb74b)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/aviobuf.c