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

jl_calloc overflows #1193

Closed
mkitti opened this issue Oct 20, 2021 · 2 comments
Closed

jl_calloc overflows #1193

mkitti opened this issue Oct 20, 2021 · 2 comments

Comments

@mkitti
Copy link

mkitti commented Oct 20, 2021

I notice that Nemo.jl uses jl_calloc. Just be warned that currently the integer multiplication overflows:
JuliaLang/julia#42673

It may return a non-null value and not allocate the memory requested.

julia> ccall(:jl_calloc,Ptr{Nothing},(Csize_t, Csize_t), 0xffffffffffffffff, 0xffffffffffffffff)
Ptr{Nothing} @0x000000001ebd1180
@wbhart
Copy link
Contributor

wbhart commented Nov 3, 2021

Thanks for letting us know.

@mkitti
Copy link
Author

mkitti commented Nov 3, 2021

It should be fixed by 1.8:
JuliaLang/julia#42761

@mkitti mkitti closed this as completed Nov 3, 2021
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

2 participants