mirror of https://git.ffmpeg.org/ffmpeg.git
libavutil/base64: Try not to write over the array end
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
0664cbd732
commit
2d216566f2
|
@ -127,9 +127,11 @@ validity_check:
|
|||
}
|
||||
|
||||
out3:
|
||||
if (end - dst)
|
||||
*dst++ = v >> 10;
|
||||
v <<= 2;
|
||||
out2:
|
||||
if (end - dst)
|
||||
*dst++ = v >> 4;
|
||||
out1:
|
||||
out0:
|
||||
|
|
Loading…
Reference in New Issue