Skip to content

Commit

Permalink
Fix PUSHSLICE for some unfortunate slice lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
EmelyanenkoK authored Apr 4, 2023
1 parent 35889fa commit e3af63e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/fift/lib/Asm.fif
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ x{89} @Defop(ref) PUSHREFSLICE
x{8A} @Defop(ref) PUSHREFCONT
{ 1- dup 0< over 8 >= or abort"invalid slice padding"
swap 1 1 u, 0 rot u, } : @scomplete
{ tuck sbitrefs swap 17 + swap @havebitrefs not
{ tuck sbitrefs swap 26 + swap @havebitrefs not
{ <b rot s, b> PUSHREFSLICE }
{ over sbitrefs 2dup 123 0 2x<=
{ drop tuck 4 + 3 >> swap x{8B} s, over 4 u, 3 roll s,
Expand Down

0 comments on commit e3af63e

Please sign in to comment.