Skip to content

Commit

Permalink
Decoder schema size calculation bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
EgeBalci committed Feb 22, 2024
1 parent 3466708 commit 2e16f30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ func (encoder *Encoder) AddSchemaDecoder(payload []byte, schema SCHEMA) ([]byte,
return nil, err
}

payload = append(garbage, payload...)
index += len(garbage)

// Add call instruction over the ciphered payload
payload, err = encoder.AddCallOver(payload)
if err != nil {
return nil, err
}

payload = append(garbage, payload...)
index += len(garbage)

// Add garbage instrctions after the ciphered decoder stub
garbage, err = encoder.GenerateGarbageInstructions()
if err != nil {
Expand Down

0 comments on commit 2e16f30

Please sign in to comment.