Skip to content

Commit 63245d6

Browse files
author
adam
committed
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).
1 parent cdbb4de commit 63245d6

File tree

3 files changed

+6
-24
lines changed

3 files changed

+6
-24
lines changed

textproc/cmark/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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 $
22

3-
DISTNAME= cmark-0.30.2
4-
PKGREVISION= 1
3+
DISTNAME= cmark-0.30.3
54
CATEGORIES= textproc
65
MASTER_SITES= ${MASTER_SITE_GITHUB:=jgm/}
76

textproc/cmark/distinfo

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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 $
22

3-
BLAKE2s (cmark-0.30.2.tar.gz) = b164ae5a797abba43c6829af282e271abe94ccecd6a347c2e8216e33320ec2fb
4-
SHA512 (cmark-0.30.2.tar.gz) = aaa9b2103cf89c522f9b42a2b43c07ecf75e07eb42214c0be5de17682ea1faf9c85e3dd28fe91d446b69a34f9980bcab6e276a99b42540c40c9ee1481b3a0d17
5-
Size (cmark-0.30.2.tar.gz) = 246033 bytes
3+
BLAKE2s (cmark-0.30.3.tar.gz) = 305d9c9d472c13eb442fb149f3a50fa3e1f1c69829213376a04f24b1456d3fd6
4+
SHA512 (cmark-0.30.3.tar.gz) = 27383bfef95ae1390c26aff0dd2cbca33704e7d20116bf29da4695d2c9a4146b86daba0da1e91bdb9eab95671702f885e832b3d31d51601731f1dc630df5237b
5+
Size (cmark-0.30.3.tar.gz) = 246916 bytes
66
SHA1 (patch-src_CMakeLists.txt) = 6403931bb8c07738d4e8c0f1fc96db67c04addb4
7-
SHA1 (patch-src_cmark.h) = 4cc0740bc605cf701f06bf9cf1ec68348366e891

textproc/cmark/patches/patch-src_cmark.h

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)