Descriptionbase64: fix bug that decoder fails to detect corruption
Encoding.Decode() failed to detect trailing garbages if input contains "==" followed by garbage smaller than 3 bytes (for example, it failed to detect "x" in "AA==x"). This patch fixes the bug and adds a few tests.
Patch Set 1 #Patch Set 2 : diff -r 32b8c26e4414 https://code.google.com/p/go #Patch Set 3 : diff -r 32b8c26e4414 https://code.google.com/p/go #
Total comments: 6
Patch Set 4 : diff -r 262af7c32d11 https://code.google.com/p/go #MessagesTotal messages: 6
|