Skip to content

Commit

Permalink
Fix logic for string length
Browse files Browse the repository at this point in the history
Transpilation from PHP was incorrect.
  • Loading branch information
mLicznerskiIterative committed Feb 9, 2025
1 parent 9b1d77b commit ed0edef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signature/signatureV4.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func readStructureField(signature []byte, fieldType string) (interface{}, []byte

length := *vData["v"]

if length&0x8000 == 0 {
if length&0x8000 > 0 {
/* For future use */
length = length & 0xff
}
Expand Down

0 comments on commit ed0edef

Please sign in to comment.