diff options
author | Alexander Riccio <test35965@gmail.com> | 2020-03-30 21:15:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-30 21:15:59 (GMT) |
commit | 51e3e450fbed46198d9be92add1a5dee6a1f7f41 (patch) | |
tree | 14d0f753604a99b7759994a7f0c61da61abedc94 /Misc | |
parent | fc2d8d62af25be90f5fd490df141a775d9619b23 (diff) | |
download | cpython-51e3e450fbed46198d9be92add1a5dee6a1f7f41.zip cpython-51e3e450fbed46198d9be92add1a5dee6a1f7f41.tar.gz cpython-51e3e450fbed46198d9be92add1a5dee6a1f7f41.tar.bz2 |
bpo-40020: Fix realloc leak on failure in growable_comment_array_add (GH-19083)
Fix a leak and subsequent crash in parsetok.c caused by realloc misuse on a rare codepath.
Realloc returns a null pointer on failure, and then growable_comment_array_deallocate crashes later when it dereferences it.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2020-03-19-21-53-41.bpo-40020.n-26G7.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-03-19-21-53-41.bpo-40020.n-26G7.rst b/Misc/NEWS.d/next/Core and Builtins/2020-03-19-21-53-41.bpo-40020.n-26G7.rst new file mode 100644 index 0000000..948404b --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2020-03-19-21-53-41.bpo-40020.n-26G7.rst @@ -0,0 +1 @@ +Fix a leak and subsequent crash in parsetok.c caused by realloc misuse on a rare codepath. |