[Python-modules-team] Bug#887564: sip4: SIP 4.19.6 segfaults when running code generator
Scott Talbert
swt at techie.net
Thu Jan 18 01:11:34 UTC 2018
Source: sip4
Version: 4.19.6+dfsg-1
Severity: important
Tags: upstream patch
Dear Maintainer,
SIP 4.19.6 segfaults when running the code generator as part of building
wxPython Phoenix. This has been fixed upstream, but it would be good if
the patch could be cherry-picked.
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.14.0-3-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
# HG changeset patch
# User Phil Thompson <phil at riverbankcomputing.com>
# Date 1515952150 0
# Node ID 8f9c478295d36b07066fba1c2ac8daacf632dde7
# Parent e37301b91a57db62ed77ad5c912fcda30d85c997
Fixed the generated of a default value that is a global unscoped enum.
diff -r e37301b91a57 -r 8f9c478295d3 sipgen/gencode.c
--- a/sipgen/gencode.c Tue Jan 09 14:16:47 2018 +0000
+++ b/sipgen/gencode.c Sun Jan 14 17:49:10 2018 +0000
@@ -7585,7 +7585,7 @@
{
if (isScopedEnum(ed))
prcode(fp, "%E", ed);
- else
+ else if (ed->ecd != NULL)
prEnumMemberScope(ed->members, fp);
prcode(fp, "::%s", ed->members->cname);
More information about the Python-modules-team
mailing list