From 40db90c1ce1a59d5f5f2894bb0ce32110000bf27 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 20 Apr 2017 21:19:31 +0300 Subject: bpo-29802: Fix reference counting in module-level struct functions (#1213) when pass arguments 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 932ef47..02d50b2 100644 --- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py @@ -599,6 +599,16 @@ class StructTest(unittest.TestCase): 'offset -11 out of range for 10-byte buffer'): struct.pack_into('