Browse Source

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

tags/v0.5.2
Ben Kurtovic 5 years ago
parent
commit
2c206bc16b
3 changed files with 4 additions and 1 deletions
  1. +1
    -0
      CHANGELOG
  2. +2
    -0
      docs/changelog.rst
  3. +1
    -1
      mwparserfromhell/parser/ctokenizer/tokenizer.c

+ 1
- 0
CHANGELOG View File

@@ -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 View File

@@ -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 View File

@@ -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…
Cancel
Save