-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix: prevent signed integer overflow in OP_MSG message sizes #2693
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
base: master
Are you sure you want to change the base?
Changes from all commits
2a0304e
e5cdb2e
acc3f21
3211211
f170513
ef64bbf
5201951
077648c
4d57f95
bba20d2
e252ccc
2f301ea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,7 +60,7 @@ static PyObject* _error(char* name) { | |
| * Returns 0 on failure */ | ||
| static int buffer_write_bytes_ssize_t(buffer_t buffer, const char* data, Py_ssize_t size) { | ||
| int downsize = _downcast_and_check(size, 0); | ||
| if (size == -1) { | ||
| if (downsize == -1) { | ||
| return 0; | ||
| } | ||
| return buffer_write_bytes(buffer, data, downsize); | ||
|
Comment on lines
61
to
66
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.