cpp-base64
cpp-base64 copied to clipboard
Decode does not safely handle strings of size not multiple of 4
Passing the decode method a strings of size so that (size % 4) != 0
causes the algorithm to try to read memory not belonging to the input data
I see if ( ( pos + 2 < length_of_string ) ... can you explain?