1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-12 11:12:16 +00:00

Fix PUSHSLICE for some unfortunate slice lengths

This commit is contained in:
EmelyanenkoK 2023-04-04 18:26:02 +03:00 committed by GitHub
parent 35889fa5f5
commit e3af63e6c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,