[Zope-dev] [Patch] for [Severe BUG] Memory corruption - SIGSEGV kills Zope

Dieter Maurer dieter@handshake.de
Sun, 9 Sep 2001 17:31:49 +0200 (CEST)


--119VQOzmK8
Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit

Yesterday, I reported:

Dieter Maurer writes:
 > Because the Collector is down, here an bug report:
 > 
 > Importance:	      very important
 > Urgency:	      need in next revision
 > Reported Version:     Zope CVS (last updated shortly after Zope 2.4.1 announcement)
 > Python:		      Python 2.1 on Linux2
 > 
 > Description:
 > Just got an obvious memory corruption problem:
 > .....

Attached is a patch for the problem.

The problem arises probably only very rarely in real Zope environments
(only, if permission is checked for an object that does not have
"AcquisitionDefaultPermissions" in its acquisition chain).


Dieter


--119VQOzmK8
Content-Type: application/x-patch
Content-Description: cAccessControl.c patch to fix a missing Py_INCREF
Content-Disposition: attachment;
	filename="cAccess.pat"
Content-Transfer-Encoding: base64

LS0tIGxpYi9weXRob24vQWNjZXNzQ29udHJvbC86Y0FjY2Vzc0NvbnRyb2wuYwlXZWQgSnVsIDEx
IDIyOjQ5OjEzIDIwMDEKKysrIGxpYi9weXRob24vQWNjZXNzQ29udHJvbC9jQWNjZXNzQ29udHJv
bC5jCVN1biBTZXAgIDkgMTc6MjI6NTIgMjAwMQpAQCAtMTUyNCw2ICsxNTI0LDcgQEAKIAkJUHlf
REVDUkVGKHIpOwogCQlyID0gc2VsZi0+X19yb2xlc19fOwogCQlpZiAociA9PSBOVUxMKSBnb3Rv
IGVycjsKKwkJUHlfSU5DUkVGKHIpOwogCX0KIAogCS8qfAo=

--119VQOzmK8--