Author: Armin Rigo <[email protected]>
Branch:
Changeset: r3176:4e1b8c2f5410
Date: 2018-12-18 17:10 +0100
http://bitbucket.org/cffi/cffi/changeset/4e1b8c2f5410/
Log: Fix (very unlikely case though)
diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -3489,6 +3489,7 @@
if (ct->ct_flags & CT_WITH_VAR_ARRAY) {
PyErr_SetString(PyExc_TypeError,
"return type is a struct/union with a varsize array member");
+ return NULL;
}
cd = allocate_owning_object(dataoffset + datasize, ct, /*dont_clear=*/1);
if (cd == NULL)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit