base32_decode_char() added a extra zero octet to the output if the fifth character was a pad character. The length of octets to copy to the output was set to 3 instead of 2. (cherry picked from commit 6c7e50c267)
6c7e50c267