Previously, the dst_len value was not decreased after each character that was written to the dst buffer. This way, if the content length was greater than dst_len, decoded_content wrote to memory out of bounds. Issue #2644