-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Segfault on decoding of nested lists and maps #9
Comments
They are equivalent to |
Hi @DavidBuchanan314, do not you want to contribute a fix? :) The depth of recursion is calculated already. The last question is what the limit to set to raise proper error instead of panic? |
IDK if it's accessible from the rust side of things, but from the CPython API you can add calls to But, maybe it would be better to have an explicit limit for CBOR depth, for consistency? If so, around 256 would be pretty conservative |
btw if anyone would like test cases, some deeply nested records are still present in the firehose backfill window at |
Yeah. I ve researched it a long while ago and just stopped on putting the emoji on the comment xD PyO3/pyo3#2510 (comment) As I remember I tried to set hard limit to 256 and it was not enough to typical firehose stream |
I'm surprised to hear 256 was not enough, are you sure it wasn't from other people messing around like me? |
I am not sure. That also was long time ago back to previous winter IG. So I do not remember ;( |
Ah, that's probably why I stopped
Probably it will be a reason to drop Python 3.8 support. Which died back to beginning of this October |
these benchmarks fail. ref https://github.com/DavidBuchanan314/dag-cbor-benchmark
@DavidBuchanan314 could you pls provide more info about what special about "torture_nested_*"?
The text was updated successfully, but these errors were encountered: