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>
Wed, 13 Jan 2016 02:09:08 +0000 (03:09 +0100)
commit115fb6d03ef6310732b42258d8c3cd1839cfb74b
tree0e1a710796e9ca898602e90874fb26f954f48e14
parent1a876cc581e70990aaa9c6482bb8e6ea5b21071b
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>
libavformat/aviobuf.c