-
Notifications
You must be signed in to change notification settings - Fork 16
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
Panic triggered by Thrift's usage of library, introduced in 1.1.0 #7
Comments
Thank you for reporting! I committed the above to see if this may fix the thrift issue. It's essentially an off-by-one error that is neutral for all integers smaller than the default buffer (10 bytes), but panics due to out-of-bounds access for bigger integers (this is also why the provided tests pass for either version). I believe that 10 bytes is the maximum legal/sensible size for a varint, which is why it was implemented like this. Would you mind trying to reproduce the issue on branch |
This appears to fix the problem, thanks. To be specific, when the dependencies section in
I see the panic, when I extend that to
it works. I'll update the issue I reported with Thrift. |
I'm glad I could help! I published version 1.1.4. By the way, I think we worked in the same office in Zurich a few years ago. I seem to remember your name :-) |
Ah, yeah, that was me. In other news, I've submitted a PR to Thrift to point to 1.1.4 or above of the library, however it's failing because of the use of await, see https://travis-ci.org/apache/thrift/jobs/658632104?utm_medium=notification&utm_source=github_status. Is this something you can address as well? |
https://issues.apache.org/jira/browse/THRIFT-5111 still unsolved |
In theory, this should not happen: Without any async feature ( Maybe this is related to an old compiler, which knows the keyword but cannot process it? I don't know the details on the rust compiler, at which stage the conditional compilation is evaluated, for example. |
This seems to have been fixed, judging from the jira ticket. |
I've reported what I think is a problem in Thrift's use of this library, with a reproduction recipe, in https://issues.apache.org/jira/browse/THRIFT-5131.
Just in case it's actually a bug in this library I'm reporting it here too. I did "git bisect" to find the commit that introduced the problem, it's f7d55af.
The text was updated successfully, but these errors were encountered: