Browse Source

Fix use-after-free bug.

tags/v0.4.1
Ben Kurtovic 8 years ago
parent
commit
8e7a600b51
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      mwparserfromhell/parser/ctokenizer/tokenizer.c

+ 1
- 0
mwparserfromhell/parser/ctokenizer/tokenizer.c View File

@@ -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;
}


Loading…
Cancel
Save