This website works better with JavaScript.
Home
Help
Sign In
ben
/
mwparserfromhell
mirror of
https://github.com/earwig/mwparserfromhell
Watch
1
Star
1
Fork
0
Code
Releases
24
Activity
Browse Source
Fix use-after-free bug.
tags/v0.4.1
Ben Kurtovic
9 years ago
parent
8963c1f683
commit
8e7a600b51
1 changed files
with
1 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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;
int skip_style_tags = 0;
if (PyArg_ParseTuple(args, "U|ii", &input, &context, &skip_style_tags)) {
if (PyArg_ParseTuple(args, "U|ii", &input, &context, &skip_style_tags)) {
Py_INCREF(input);
if (load_tokenizer_text(&self->text, input))
if (load_tokenizer_text(&self->text, input))
return NULL;
return NULL;
}
}
Write
Preview
Loading…
Cancel
Save