From 4c6dcb579978fcbac3802285e5e05378dee5e225 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 27 Aug 2014 11:34:35 +0200 Subject: [PATCH] Fix type issue with bool_t in the Python wrapper, leading to memory overwrite. --- tools/python/apixml2python/linphone.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/apixml2python/linphone.py b/tools/python/apixml2python/linphone.py index 0b9fdb7b4..1b4fc7f91 100644 --- a/tools/python/apixml2python/linphone.py +++ b/tools/python/apixml2python/linphone.py @@ -138,8 +138,8 @@ class ArgumentType: self.type_str = 'bool' self.check_func = 'PyBool_Check' self.convert_func = 'PyInt_AsLong' - self.fmt_str = 'i' - self.cfmt_str = '%d' + self.fmt_str = 'b' + self.cfmt_str = '%u' elif self.basic_type == 'time_t': self.type_str = 'DateTime' self.check_func = 'PyDateTime_Check'