ton-blockchain / ton

Main TON monorepo
Other
3.1k stars 984 forks source link

fift does not handle vm::CellBuilder::CellCreateError exception #72

Closed ghost closed 5 years ago

ghost commented 5 years ago

For example, when you try to convert string (> 1023 bits) to slice, interpreter crashes:

root@19379b75ee42:/data/build# echo '"" { +"A" } 128 times $>s' | fift
terminate called after throwing an instance of 'vm::CellBuilder::CellCreateError'
Aborted
ton-blockchain commented 5 years ago

Thanks! This is not too critical for the scripting purposes, but definitely not good. We'll fix this in the next update.