-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Heap allocation size failed #209
Comments
I'm not sure what to do with this information alone. Do you have the source code that triggered this crash? |
This code calls "Vec::with_capacity" through the code below:
So, according to these two code, if the size of file is big enough to exceed the heap size, the "Heap allocation size error" occurs.
|
@hlorenzi Since we discussed about this issue a time ago, It might be a great pleasure for me if you take this issue into account! :) |
Version
v0.11.14-1-gcc05721
Description
There is a heap allocation-size fail due to the unsafe "alloc" function used by 'customasm::util::bigint::BigInt::shl' function.
Current Behavior
ASAN detect heap allocation size failed due to the allocation by 'customasm::util::bigint::BigInt::shl' function exceed the maximum supported size
Expected Behavior
Memory-safety code with no allocation-size failed. This might be handled by denying allocation when the size of object exceeds the maximum allocation size.
The text was updated successfully, but these errors were encountered: