libavutil/base64: Try not to write over the array end
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 2d216566f258badd07bc58de1e089b6e4175dc46) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
682b002d15
commit
ef80220f32
@ -120,9 +120,11 @@ int av_base64_decode(uint8_t *out, const char *in_str, int out_size)
|
||||
}
|
||||
|
||||
out3:
|
||||
if (end - dst)
|
||||
*dst++ = v >> 10;
|
||||
v <<= 2;
|
||||
out2:
|
||||
if (end - dst)
|
||||
*dst++ = v >> 4;
|
||||
out1:
|
||||
out0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user