瀏覽代碼

Fix crash due to PyList_GET_SIZE being applied to a dict (fixes #208)

tags/v0.5.2
Ben Kurtovic 5 年之前
父節點
當前提交
2c206bc16b
共有 3 個檔案被更改,包括 4 行新增1 行删除
  1. +1
    -0
      CHANGELOG
  2. +2
    -0
      docs/changelog.rst
  3. +1
    -1
      mwparserfromhell/parser/ctokenizer/tokenizer.c

+ 1
- 0
CHANGELOG 查看文件

@@ -4,6 +4,7 @@ v0.6 (unreleased):
- Fixed signals getting stuck inside the C tokenizer until parsing finishes,
in pathological cases. (#206)
- Fixed <wbr> not being considered a single-only tag. (#200)
- Fixed a C tokenizer crash on Python 3.7 when compiled with assertions. (#208)

v0.5.1 (released March 3, 2018):



+ 2
- 0
docs/changelog.rst 查看文件

@@ -15,6 +15,8 @@ Unreleased
(`#206 <https://github.com/earwig/mwparserfromhell/issues/206>`)
- Fixed `<wbr>` not being considered a single-only tag.
(`#200 <https://github.com/earwig/mwparserfromhell/pull/200>`)
- Fixed a C tokenizer crash on Python 3.7 when compiled with assertions.
(`#208 <https://github.com/earwig/mwparserfromhell/issues/208>`)

v0.5.1
------


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

@@ -207,7 +207,7 @@ static int load_entities(void)
if (!deflist)
return -1;
Py_DECREF(defmap);
numdefs = (unsigned) PyList_GET_SIZE(defmap);
numdefs = (unsigned) PyList_GET_SIZE(deflist);
entitydefs = calloc(numdefs + 1, sizeof(char*));
if (!entitydefs)
return -1;


Loading…
取消
儲存