Skip to content

Commit

Permalink
cmark: updated to 0.30.3
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
adam committed Jan 24, 2023
1 parent cdbb4de commit 63245d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 24 deletions.
5 changes: 2 additions & 3 deletions textproc/cmark/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.11 2021/11/29 10:44:16 cirnatdan Exp $
# $NetBSD: Makefile,v 1.12 2023/01/24 08:27:49 adam Exp $

DISTNAME= cmark-0.30.2
PKGREVISION= 1
DISTNAME= cmark-0.30.3
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GITHUB:=jgm/}

Expand Down
9 changes: 4 additions & 5 deletions textproc/cmark/distinfo
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
$NetBSD: distinfo,v 1.11 2021/11/29 10:44:16 cirnatdan Exp $
$NetBSD: distinfo,v 1.12 2023/01/24 08:27:49 adam Exp $

BLAKE2s (cmark-0.30.2.tar.gz) = b164ae5a797abba43c6829af282e271abe94ccecd6a347c2e8216e33320ec2fb
SHA512 (cmark-0.30.2.tar.gz) = aaa9b2103cf89c522f9b42a2b43c07ecf75e07eb42214c0be5de17682ea1faf9c85e3dd28fe91d446b69a34f9980bcab6e276a99b42540c40c9ee1481b3a0d17
Size (cmark-0.30.2.tar.gz) = 246033 bytes
BLAKE2s (cmark-0.30.3.tar.gz) = 305d9c9d472c13eb442fb149f3a50fa3e1f1c69829213376a04f24b1456d3fd6
SHA512 (cmark-0.30.3.tar.gz) = 27383bfef95ae1390c26aff0dd2cbca33704e7d20116bf29da4695d2c9a4146b86daba0da1e91bdb9eab95671702f885e832b3d31d51601731f1dc630df5237b
Size (cmark-0.30.3.tar.gz) = 246916 bytes
SHA1 (patch-src_CMakeLists.txt) = 6403931bb8c07738d4e8c0f1fc96db67c04addb4
SHA1 (patch-src_cmark.h) = 4cc0740bc605cf701f06bf9cf1ec68348366e891
16 changes: 0 additions & 16 deletions textproc/cmark/patches/patch-src_cmark.h

This file was deleted.

0 comments on commit 63245d6

Please sign in to comment.