瀏覽代碼

Fix signals getting stuck inside the C tokenizer (#206)

tags/v0.5.2
Ben Kurtovic 6 年之前
父節點
當前提交
6de7d41733
共有 3 個文件被更改,包括 7 次插入0 次删除
  1. +2
    -0
      CHANGELOG
  2. +3
    -0
      docs/changelog.rst
  3. +2
    -0
      mwparserfromhell/parser/ctokenizer/tok_parse.c

+ 2
- 0
CHANGELOG 查看文件

@@ -1,6 +1,8 @@
v0.6 (unreleased):

- Dropped support for end-of-life Python versions 2.6, 3.2, 3.3. (#199, #204)
- 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)

v0.5.1 (released March 3, 2018):


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

@@ -10,6 +10,9 @@ Unreleased
- Dropped support for end-of-life Python versions 2.6, 3.2, 3.3.
(`#199 <https://github.com/earwig/mwparserfromhell/issues/199>`,
`#204 <https://github.com/earwig/mwparserfromhell/pull/204>`)
- Fixed signals getting stuck inside the C tokenizer until parsing finishes,
in pathological cases.
(`#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>`)



+ 2
- 0
mwparserfromhell/parser/ctokenizer/tok_parse.c 查看文件

@@ -2603,6 +2603,8 @@ PyObject* Tokenizer_parse(Tokenizer* self, uint64_t context, int push)
}
if (!this)
return Tokenizer_handle_end(self, this_context);
if (PyErr_CheckSignals())
return NULL;
next = Tokenizer_read(self, 1);
last = Tokenizer_read_backwards(self, 1);
if (this == next && next == '{') {


Loading…
取消
儲存