Download tasks/csa159/pair_135384/patch.diff from Benchanything/checkerbench: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/csa159/pair_135384/patch.diff
- Command line
-
hf download hf://datasets/Benchanything/checkerbench/tasks/csa159/pair_135384/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/csa159/pair_135384/patch.diff
1.22 kB
| diff --git a/CHANGELOG.md b/CHANGELOG.md | |
| index 5176d97..d7967d2 100644 | |
| --- a/CHANGELOG.md | |
| +++ b/CHANGELOG.md | |
| # MD4C Change Log | |
| +## Next Version (Work in Progress) | |
| + | |
| +Fixes: | |
| + | |
| +* [#130](https://github.com/mity/md4c/issues/130): | |
| + Fix `ISANYOF` macro, which could provide unexpected results when encountering | |
| + zero byte in the input text; in some cases leading to broken internal state | |
| + of the parser. | |
| + | |
| + | |
| ## Version 0.4.5 | |
| Fixes: | |
| diff --git a/src/md4c.c b/src/md4c.c | |
| index 6324446..0119e7a 100644 | |
| --- a/src/md4c.c | |
| +++ b/src/md4c.c | |
| struct MD_VERBATIMLINE_tag { | |
| /* Character classification. | |
| * Note we assume ASCII compatibility of code points < 128 here. */ | |
| #define ISIN_(ch, ch_min, ch_max) ((ch_min) <= (unsigned)(ch) && (unsigned)(ch) <= (ch_max)) | |
| -#define ISANYOF_(ch, palette) (md_strchr((palette), (ch)) != NULL) | |
| +#define ISANYOF_(ch, palette) ((ch) != _T('\0') && md_strchr((palette), (ch)) != NULL) | |
| #define ISANYOF2_(ch, ch1, ch2) ((ch) == (ch1) || (ch) == (ch2)) | |
| #define ISANYOF3_(ch, ch1, ch2, ch3) ((ch) == (ch1) || (ch) == (ch2) || (ch) == (ch3)) | |
| #define ISASCII_(ch) ((unsigned)(ch) <= 127) |