Explorar el Código

Fix use-after-free bug.

tags/v0.4.1
Ben Kurtovic hace 8 años
padre
commit
8e7a600b51
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      mwparserfromhell/parser/ctokenizer/tokenizer.c

+ 1
- 0
mwparserfromhell/parser/ctokenizer/tokenizer.c Ver fichero

@@ -139,6 +139,7 @@ static PyObject* Tokenizer_tokenize(Tokenizer* self, PyObject* args)
int skip_style_tags = 0;

if (PyArg_ParseTuple(args, "U|ii", &input, &context, &skip_style_tags)) {
Py_INCREF(input);
if (load_tokenizer_text(&self->text, input))
return NULL;
}


Cargando…
Cancelar
Guardar