You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the size check is before the index is grabbed via the sub. This results in the maximum being checked against the length plus index rather than index. I think this could be fixed by moving the sub instruction to before the cmp in loop. The current implementation would only xor the first 64 bytes of a 192 byte payload as maximum is set to 256. Might be able to make that larger given that the ARM32 would allow 12 bit immediates for the add/sub, but could have other issues due at that point as this loop always goes to max currently (technically, currently it's incorrectly going to maximum - length)
The text was updated successfully, but these errors were encountered:
The ArmXorEncoder does the following:
Note that the size check is before the index is grabbed via the
sub
. This results in the maximum being checked against the length plus index rather than index. I think this could be fixed by moving thesub
instruction to before thecmp
inloop
. The current implementation would only xor the first 64 bytes of a 192 byte payload as maximum is set to 256. Might be able to make that larger given that the ARM32 would allow 12 bit immediates for the add/sub, but could have other issues due at that point as this loop always goes to max currently (technically, currently it's incorrectly going tomaximum - length
)The text was updated successfully, but these errors were encountered: