-
Michael Niedermayer authored
The function in case of n=0 would read more bytes than 0. The end pointer could be beyond the allocated space, which is undefined. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 6f0e9a86 ) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
d8bdc954