From: Mark Wooding Date: Thu, 11 May 2017 09:42:15 +0000 (+0100) Subject: utils.c: Raise exceptions from `convTHING' with null arguments. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/commitdiff_plain/2ed3b5080980781d53c9f50aed97934c0f589474?hp=2ed3b5080980781d53c9f50aed97934c0f589474 utils.c: Raise exceptions from `convTHING' with null arguments. This can happen as a result of using `convTHING' in an attribute `set' function, and the Python program trying to `del' the attribute. Unfortunately, these conversion functions are already being used in this context, and it leads to segfaults, e.g., from del C.Key(C.KeyFile('', C.KOPEN_WRITE | C.KOPEN_NOFILE), 0, 'k').exptime Easy fix. ---