Tue Jan 24 08:27:49 2023 UTC ()
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).


(adam)
diff -r1.11 -r1.12 pkgsrc/textproc/cmark/Makefile
diff -r1.11 -r1.12 pkgsrc/textproc/cmark/distinfo
diff -r1.1 -r0 pkgsrc/textproc/cmark/patches/patch-src_cmark.h

cvs diff -r1.11 -r1.12 pkgsrc/textproc/cmark/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/cmark/Makefile 2021/11/29 10:44:16 1.11
+++ pkgsrc/textproc/cmark/Makefile 2023/01/24 08:27:49 1.12
@@ -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
3DISTNAME= cmark-0.30.2 3DISTNAME= cmark-0.30.3
4PKGREVISION= 1 
5CATEGORIES= textproc 4CATEGORIES= textproc
6MASTER_SITES= ${MASTER_SITE_GITHUB:=jgm/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=jgm/}
7 6
8MAINTAINER= pkgsrc-users@NetBSD.org 7MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://github.com/commonmark/cmark 8HOMEPAGE= https://github.com/commonmark/cmark
10COMMENT= CommonMark parsing and rendering library and program in C 9COMMENT= CommonMark parsing and rendering library and program in C
11LICENSE= 2-clause-bsd 10LICENSE= 2-clause-bsd
12 11
13USE_CMAKE= yes 12USE_CMAKE= yes
14USE_LANGUAGES= c c++ 13USE_LANGUAGES= c c++
15USE_TOOLS+= pkg-config 14USE_TOOLS+= pkg-config
16CONFIGURE_DIRS= build 15CONFIGURE_DIRS= build
17CMAKE_ARG_PATH= ${WRKSRC} 16CMAKE_ARG_PATH= ${WRKSRC}

cvs diff -r1.11 -r1.12 pkgsrc/textproc/cmark/distinfo (expand / switch to unified diff)

--- pkgsrc/textproc/cmark/distinfo 2021/11/29 10:44:16 1.11
+++ pkgsrc/textproc/cmark/distinfo 2023/01/24 08:27:49 1.12
@@ -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
3BLAKE2s (cmark-0.30.2.tar.gz) = b164ae5a797abba43c6829af282e271abe94ccecd6a347c2e8216e33320ec2fb 3BLAKE2s (cmark-0.30.3.tar.gz) = 305d9c9d472c13eb442fb149f3a50fa3e1f1c69829213376a04f24b1456d3fd6
4SHA512 (cmark-0.30.2.tar.gz) = aaa9b2103cf89c522f9b42a2b43c07ecf75e07eb42214c0be5de17682ea1faf9c85e3dd28fe91d446b69a34f9980bcab6e276a99b42540c40c9ee1481b3a0d17 4SHA512 (cmark-0.30.3.tar.gz) = 27383bfef95ae1390c26aff0dd2cbca33704e7d20116bf29da4695d2c9a4146b86daba0da1e91bdb9eab95671702f885e832b3d31d51601731f1dc630df5237b
5Size (cmark-0.30.2.tar.gz) = 246033 bytes 5Size (cmark-0.30.3.tar.gz) = 246916 bytes
6SHA1 (patch-src_CMakeLists.txt) = 6403931bb8c07738d4e8c0f1fc96db67c04addb4 6SHA1 (patch-src_CMakeLists.txt) = 6403931bb8c07738d4e8c0f1fc96db67c04addb4
7SHA1 (patch-src_cmark.h) = 4cc0740bc605cf701f06bf9cf1ec68348366e891 

File Deleted: pkgsrc/textproc/cmark/patches/Attic/patch-src_cmark.h