cmark: updated to 0.30.3 0.30.3 * Fix quadratic complexity bug with repeated `![[]()`. Resolves CVE-2023-22486. Add new pathological test. * Allow declarations with no space, as per spec. * Set `enumi*` counter correctly in LaTeX output. * Allow `<!DOCTYPE` to be case-insensitive. (This conforms to the existing spec.) * Fixed HTML comment scanning. Need to handle this case: `<!--> and -->`. Since the scanner finds the longest match, we had to move some of the logic outside of the scanner. * Fix quadratic parsing issue with repeated `<!--` (this was not introduced by the previous fix, and not in a released version of cmark). Resolves CVE-2023-22484. Add new pathological test. * Update HTML comment scanner to accord with commonmark/commonmark-spec#713. * Pathological tests: half the number of repetitions, and the timeout. This reduces the time needed for the pathological tests. * Shrink `struct cmark_node`. The `internal_offset` member is only used for headings and can be moved to `struct cmark_heading`. This reduces the size of `struct cmark_node` from 112 to 104 bytes on 64-bit systems. * Add `-Wstrict-prototypes` and fix offending functions. * Fix quadratic behavior involving `get_containing_block`. Instead of searching for the containing block, update the tight list status when entering a child of a list item or exiting a list. * Fix `pathological_tests.py`: - Use a multiprocessing.Queue to actually get results from spawned tests processes. - Fix the `allowed_failures` test. - Truncate actual output when printed. - Prepare for testing pathological behavior of the Commonmark renderer. * Fix source position bug with backticks (kyle).diff -r1.11 -r1.12 pkgsrc/textproc/cmark/Makefile
(adam)
@@ -1,17 +1,16 @@ | @@ -1,17 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.11 2021/11/29 10:44:16 cirnatdan Exp $ | 1 | # $NetBSD: Makefile,v 1.12 2023/01/24 08:27:49 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= cmark-0.30.2 | 3 | DISTNAME= cmark-0.30.3 | |
4 | PKGREVISION= 1 | |||
5 | CATEGORIES= textproc | 4 | CATEGORIES= textproc | |
6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=jgm/} | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=jgm/} | |
7 | 6 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 7 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://github.com/commonmark/cmark | 8 | HOMEPAGE= https://github.com/commonmark/cmark | |
10 | COMMENT= CommonMark parsing and rendering library and program in C | 9 | COMMENT= CommonMark parsing and rendering library and program in C | |
11 | LICENSE= 2-clause-bsd | 10 | LICENSE= 2-clause-bsd | |
12 | 11 | |||
13 | USE_CMAKE= yes | 12 | USE_CMAKE= yes | |
14 | USE_LANGUAGES= c c++ | 13 | USE_LANGUAGES= c c++ | |
15 | USE_TOOLS+= pkg-config | 14 | USE_TOOLS+= pkg-config | |
16 | CONFIGURE_DIRS= build | 15 | CONFIGURE_DIRS= build | |
17 | CMAKE_ARG_PATH= ${WRKSRC} | 16 | CMAKE_ARG_PATH= ${WRKSRC} |
@@ -1,7 +1,6 @@ | @@ -1,7 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.11 2021/11/29 10:44:16 cirnatdan Exp $ | 1 | $NetBSD: distinfo,v 1.12 2023/01/24 08:27:49 adam Exp $ | |
2 | 2 | |||
3 | BLAKE2s (cmark-0.30.2.tar.gz) = b164ae5a797abba43c6829af282e271abe94ccecd6a347c2e8216e33320ec2fb | 3 | BLAKE2s (cmark-0.30.3.tar.gz) = 305d9c9d472c13eb442fb149f3a50fa3e1f1c69829213376a04f24b1456d3fd6 | |
4 | SHA512 (cmark-0.30.2.tar.gz) = aaa9b2103cf89c522f9b42a2b43c07ecf75e07eb42214c0be5de17682ea1faf9c85e3dd28fe91d446b69a34f9980bcab6e276a99b42540c40c9ee1481b3a0d17 | 4 | SHA512 (cmark-0.30.3.tar.gz) = 27383bfef95ae1390c26aff0dd2cbca33704e7d20116bf29da4695d2c9a4146b86daba0da1e91bdb9eab95671702f885e832b3d31d51601731f1dc630df5237b | |
5 | Size (cmark-0.30.2.tar.gz) = 246033 bytes | 5 | Size (cmark-0.30.3.tar.gz) = 246916 bytes | |
6 | SHA1 (patch-src_CMakeLists.txt) = 6403931bb8c07738d4e8c0f1fc96db67c04addb4 | 6 | SHA1 (patch-src_CMakeLists.txt) = 6403931bb8c07738d4e8c0f1fc96db67c04addb4 | |
7 | SHA1 (patch-src_cmark.h) = 4cc0740bc605cf701f06bf9cf1ec68348366e891 |