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
Fix memory allocations in sparse_graph.pyx #21720
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Commit: |
New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:8
I don't know enough cython to review this, but at least it seems to work. With |
comment:9
Btw, is there same problem for example in
? |
comment:10
I can't fix all problems in Sage... |
comment:11
Replying to @jdemeyer:
I know... But will it help someone if I open a ticket and search other uses of unnecessay |
comment:13
Replying to @jm58660:
What is "it" in the sentence above? |
comment:16
Uh, sorry. I tested |
comment:17
Replying to @jdemeyer:
By the way, this number shows that some integer overflow is happening also (a different issue from this ticket). The number 18446744072098938880 equals |
comment:18
Please review... |
Reviewer: Marc Mezzarobba |
Changed branch from u/jdemeyer/fix_some_memory_allocations_in_sparse_graph_pyx to |
Use checking allocation functions from
cysignals
to avoid a crash when running out of memory.A
malloc(n)
followed by amemset(..., 0, n)
should be acalloc()
.CC: @jm58660
Component: cython
Author: Jeroen Demeyer
Branch/Commit:
5d1b42e
Reviewer: Marc Mezzarobba
Issue created by migration from https://trac.sagemath.org/ticket/21720
The text was updated successfully, but these errors were encountered: