Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite recursion in serialize_boc #15

Open
shermike opened this issue Oct 18, 2023 · 0 comments
Open

Infinite recursion in serialize_boc #15

shermike opened this issue Oct 18, 2023 · 0 comments

Comments

@shermike
Copy link

shermike commented Oct 18, 2023

The following code leads to infinite recursion of move_to_end method

from tvm_valuetypes import Cell, deserialize_boc
import base64
boc = base64.b64decode('te6ccgECCwEAAg4AAt7/AIIQO5rKAPhljifIgQEBzwABIIIBhqC5n+1E0PQFgED0Qsj0AMntVJj4QYBA9EL4YeL4bo4dIIIBhqC5le1E0PQFkvhB4oBA9Azy4EaBAQHXANH4bSDBAfSkIFiS9KDgXwLIaKb+kxLL/+TJitkCAQCW7UDtRNDTH9P/kwHtUIIB/ScnAbmOEYIB/ScXuvKpVQFVA18DVQHZ4YIB8f8XuvKp/gD+/wBCQkJCQkJCQkJCQkJCQkJbVQEwVQHZAgEgBwMCAv4GBAI/O1AAtDbPJPtUHABo46AIFkBVQHhIscCIeH4AFUBW9mAFCAA40wEBwALtQAHysO1Q+kD6QPoA0wAwwwBxsANfAwBNFujeoD2IlnjBHF/QxDjBO1E0NMfAqDIyx8B0/8wUAKgzwv/ye1UgAkDf7UAC0Ns8k+1QcAGjjoAgWQFVAeEixwIh4fgAVQFb2QoIAfztRNDTH9P/MCTHAY5cMCTXDR9vo44RXwMBpgvIyx/L/8ntVFUBW9khAeGdyMsfy//J7VRVAl8D2XEUupZbAqYLItnhQBfjBNMf+AD+/wBBQUFBQUFBQUFBQUFBQUEwJVUTAVUEVQVVI9kgWQFVAeElxwIh4TABpgrIyx/L/8kJAAztVFUBW9kAVNMA7UAC8nAB7VDTANMA0wD6QPpA+gD0BPoA+gDTP9Mf0wAwwwBxsAtfCw==')
cell = deserialize_boc(boc)
boc = cell.serialize_boc(has_idx=False, hash_crc32=False, has_cache_bits=False, flags=0)

Where boc is a code, produced by TON-Compiler.

I guess it is because of this PR #9
I reverted these changes in build_indexes method, and test passed.

Moreover, I ran the code from Issue #8 and it passed too.

@shermike shermike changed the title Infinity recursion in serialize_boc Infinite recursion in serialize_boc Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant