Skip to content

[3.7] bpo-34879: Fix a possible null pointer dereference in bytesobject.c (GH-9683)#9684

Merged
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-96c5932-3.7
Oct 3, 2018
Merged

[3.7] bpo-34879: Fix a possible null pointer dereference in bytesobject.c (GH-9683)#9684
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-96c5932-3.7

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 3, 2018

Copy link
Copy Markdown
Contributor

formatfloat() was not checking if PyBytes_FromStringAndSize()
failed, which could lead to a null pointer dereference in
_PyBytes_FormatEx().
(cherry picked from commit 96c5932)

Co-authored-by: Zackery Spytz zspytz@gmail.com

https://bugs.python.org/issue34879

…ythonGH-9683)

formatfloat() was not checking if PyBytes_FromStringAndSize()
failed, which could lead to a null pointer dereference in
_PyBytes_FormatEx().
(cherry picked from commit 96c5932)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@ZackerySpytz and @serhiy-storchaka: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington

Copy link
Copy Markdown
Contributor Author

@ZackerySpytz and @serhiy-storchaka: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 063755c into python:3.7 Oct 3, 2018
@miss-islington miss-islington deleted the backport-96c5932-3.7 branch October 3, 2018 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants