From 6e49eb14ea31e356fe7855f07c456cadaf262826 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 20 Apr 2017 13:53:14 +0300 Subject: [PATCH 1/2] bpo-29802: Fix reference counting in module-level struct functions when pass argumens of wrong type. --- Lib/test/test_struct.py | 10 ++++++++++ Misc/NEWS | 3 +++ Modules/_struct.c | 1 + Objects/unicodeobject.c | 1 + 4 files changed, 15 insertions(+) diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py index 932ef4737852b9..02d50b2d1c374e 100644 --- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py @@ -599,6 +599,16 @@ def test_boundary_error_message_with_negative_offset(self): 'offset -11 out of range for 10-byte buffer'): struct.pack_into(' Date: Thu, 20 Apr 2017 20:16:11 +0300 Subject: [PATCH 2/2] Fix a typo. --- Misc/NEWS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS b/Misc/NEWS index 0ba4489ec5f038..f194ea9f12556a 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -314,7 +314,7 @@ Library ------- - bpo-29802: Fixed reference counting in module-level struct functions when - pass argumens of wrong type. + pass arguments of wrong type. - bpo-30070: Fixed leaks and crashes in errors handling in the parser module.