-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Various checks on malloc #1781
Merged
Merged
Various checks on malloc #1781
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b1a190a
mixed 8c tabs+spaces -> spaces
wiredfool c589ae6
Change return type of PyPath_Flatten to Py_ssize_t to match PyObject_…
wiredfool 52d60cd
Malloc check, #1715
wiredfool 4b4ef5f
Malloc check, realloc, #1715
wiredfool 49566b2
added cleanup to free dictionary memory in ZipEncode, fixes old comme…
wiredfool d48e5cd
Convert xsize/ysize to ints in function declarations to match all oth…
wiredfool 768936f
overflow check for im->linesize
wiredfool 54a9797
Rework block allocator
wiredfool 5369d8e
Replace SIZE_MAX with type specific _MAX
wiredfool 7660563
MSVC doesn't define UINT32_MAX
wiredfool 92a13d9
Malloc check merge/rebase
wiredfool b0ec525
extraneous space
wiredfool d0ae5bc
added check to prevent arcs > 360 degrees
wiredfool ce57e6a
We're not actually multiplying out the bytes, only the indexes
wiredfool 8aedf8b
added comment closer to malloc
wiredfool 95f464f
removed redundant check
wiredfool File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should
i
also bePy_ssize_t
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, n is set to constant values well within the range of int in different locations in this function, and i counts up to that. The reason that n is a Py_ssize_t is that it's address is passed as an argument to getlist, which needs it to be a Py_ssize_t to match the result type of the python get sequence length function.