Severe c-module problem

Just just at xs4all.nl
Fri Apr 4 13:11:50 CEST 2003


In article <b6jo6v$715$1 at nets3.rz.RWTH-Aachen.DE>,
 Rolf Wester <wester at ilt.fhg.de> wrote:

> Hi,
> 
> I have a c-Module "pyopt" with a function:
> 
> static PyObject *_wrap_c_nlo_init_Hs(PyObject *self, PyObject *args) {
>      PyObject *resultobj;
>      char * arg0;
> 
>      cout << "in init_Hs" << endl;
> 
>      if(!PyArg_ParseTuple(args,(char *)"ss:c_nlo_init_Hs", &arg0))
>              return NULL;

You're asking for two strings ("ss:...") yet you only give one receiving 
argument (arg0), so this will overwrite some arbitrary memory and crash.

Just




More information about the Python-list mailing list