Skip to content

Commit

Permalink
fix raw decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
IncSW committed Aug 19, 2021
1 parent 7cb3e0b commit be4f1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (e *Encoding) decode(dst []byte, src []byte) int {
}
var u uint32
l := (ipstart + srclen) - ip
if l == 4 {
if e.pad && l == 4 {
if *(*byte)(unsafe.Pointer(ip + 3)) == '=' {
l = 3
if *(*byte)(unsafe.Pointer(ip + 2)) == '=' {
Expand Down

0 comments on commit be4f1c4

Please sign in to comment.