Bladeren bron

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

tags/v0.5.2
Ben Kurtovic 6 jaren geleden
bovenliggende
commit
2c206bc16b
3 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. +1
    -0
      CHANGELOG
  2. +2
    -0
      docs/changelog.rst
  3. +1
    -1
      mwparserfromhell/parser/ctokenizer/tokenizer.c

+ 1
- 0
CHANGELOG Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

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


Laden…
Annuleren
Opslaan