Skip to content

Commit

Permalink
Fix build crashing on <=
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymcmackin committed Jan 22, 2024
1 parent d61f934 commit ca2990e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/security/part-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ taq simulate 3-bitwise.tz --param 3-bitwise.parameter.shiftRight257times.tz
- The first example shifts 2n (0x0010) one time to the left, so it gives 4n (0x0100)
- The second example shifts 2n (0x0010) 257 times to the right, as the limit is 256 shifts, it produces an error `unexpected arithmetic overflow`

&rarr; **SOLUTION**: To avoid this, one should always check the size of the input and the shift amount before applying the Bitwise instructions. Here you should check if the number of shifts is <= 256, otherwise, you raise an error
&rarr; **SOLUTION**: To avoid this, one should always check the size of the input and the shift amount before applying the Bitwise instructions. Here you should check if the number of shifts is less than or equal to 256, otherwise, you raise an error

4. Sender vs Source confusion

Expand Down

0 comments on commit ca2990e

Please sign in to comment.