瀏覽代碼

Fix use-after-free bug.

tags/v0.4.1
Ben Kurtovic 8 年之前
父節點
當前提交
8e7a600b51
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      mwparserfromhell/parser/ctokenizer/tokenizer.c

+ 1
- 0
mwparserfromhell/parser/ctokenizer/tokenizer.c 查看文件

@@ -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…
取消
儲存