yaml-cpp icon indicating copy to clipboard operation
yaml-cpp copied to clipboard

DecodeBase64 returns empty string on *all* errors

Open SeanCurtis-TRI opened this issue 1 year ago • 0 comments

It already returns an empty string if it encounters an invalid character. However, if, instead, it has an incomplete set of characters (no-multiple of four), it currently returns a truncated result. Instead, it detects truncation and returns the empty string.

The only time DecodeBase64() returns a valid empty return value is if the input was likewise empty.

SeanCurtis-TRI avatar Jan 08 '25 18:01 SeanCurtis-TRI