The SWIG_Python_AddErrorMsg function in Lib/python/pyerrors.swg invokes PyErr_Format as follows:
PyErr_Format in turn treats its second argument as a printf-style format string. I believe that this is a bug and that this code should be written as:
PyErr_Format(PyExc_RuntimeError, "%s", mesg);
Log in to post a comment.