File: bibtexmodule.c
Function: fill_dico
Error: dereferencing NULL (MEM[(struct PyBibtexField_Object *)tmp2].obj) at bibtexmodule.c:414
403 static void 
404 fill_dico (gpointer key, gpointer value, gpointer user)
405 {
406     PyObject * dico = (PyObject *) user;
407     PyObject * tmp1, * tmp2;
408 
409     tmp1 = PyString_FromString ((char *) key);
when treating unknown void * from bibtexmodule.c:404 as non-NULL
when PyString_FromString() succeeds
410 
411     tmp2 = (PyObject *) PyObject_NEW (PyBibtexField_Object, & PyBibtexField_Type);
when PyObject_Init() fails
412     ((PyBibtexField_Object *) tmp2)->obj = value;
dereferencing NULL (MEM[(struct PyBibtexField_Object *)tmp2].obj) at bibtexmodule.c:414
found 1 similar trace(s) to this
413 
414     PyDict_SetItem (dico, tmp1, tmp2);
415 
416     Py_DECREF (tmp1);
417     Py_DECREF (tmp2);
418 }

File: bibtexmodule.c
Function: fill_dico
Error: calling PyDict_SetItem with NULL as argument 2 (tmp1) at bibtexmodule.c:414
403 static void 
404 fill_dico (gpointer key, gpointer value, gpointer user)
405 {
406     PyObject * dico = (PyObject *) user;
407     PyObject * tmp1, * tmp2;
408 
409     tmp1 = PyString_FromString ((char *) key);
when treating unknown void * from bibtexmodule.c:404 as non-NULL
when PyString_FromString() fails
410 
411     tmp2 = (PyObject *) PyObject_NEW (PyBibtexField_Object, & PyBibtexField_Type);
when PyObject_Init() succeeds
412     ((PyBibtexField_Object *) tmp2)->obj = value;
413 
414     PyDict_SetItem (dico, tmp1, tmp2);
when treating unknown void * from bibtexmodule.c:404 as non-NULL
calling PyDict_SetItem with NULL as argument 2 (tmp1) at bibtexmodule.c:414
PyDict_SetItem() invokes Py_TYPE() on the pointer via the PyString_CheckExact() macro, thus accessing (NULL)->ob_type
415 
416     Py_DECREF (tmp1);
417     Py_DECREF (tmp2);
418 }