Procházet zdrojové kódy

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

tags/v0.5.2
Ben Kurtovic před 6 roky
rodič
revize
2c206bc16b
3 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. +1
    -0
      CHANGELOG
  2. +2
    -0
      docs/changelog.rst
  3. +1
    -1
      mwparserfromhell/parser/ctokenizer/tokenizer.c

+ 1
- 0
CHANGELOG Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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 Zobrazit soubor

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


Načítá se…
Zrušit
Uložit