Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
cd27f96
Normalize nomenclature: marker row vs. delimiter row
waldyrious Aug 6, 2022
bcdba88
Update autolink.c
ioquatix May 1, 2023
a9c127c
Update commonmark.c
ioquatix May 1, 2023
1d17fa9
Fix GHSL-2023-119: prevent quadratic performance by not allowing very…
kevinbackhouse May 26, 2023
6913733
Merge pull request #331 from ioquatix/patch-2
kevinbackhouse Jun 6, 2023
2d65cd3
Merge pull request #330 from ioquatix/patch-1
kevinbackhouse Jun 6, 2023
5e8ad61
Fix GHSL-2023-117: store cell index on node so that it doesn't need t…
kevinbackhouse Jun 8, 2023
2c5212e
Fix GHSL-2023-118: limit number of autocompleted table cells to preve…
kevinbackhouse Jun 8, 2023
85d2eb9
Expose CMARK_NODE_FOOTNOTE_DEFINION literal value.
ioquatix Jun 16, 2023
94f38eb
Update src/node.h
kevinbackhouse Jun 20, 2023
d4a5cc1
Rename custom_int -> cell_index.
kevinbackhouse Jun 20, 2023
ed8f2fe
Add newline
kevinbackhouse Jun 20, 2023
580f021
Remove unnecessary scope.
kevinbackhouse Jun 20, 2023
abf94ee
Create codeql.yml
kevinbackhouse Jun 21, 2023
a4cf959
Merge pull request #337 from github/kevinbackhouse-patch-1
kevinbackhouse Jul 12, 2023
38d1cfe
Merge pull request from GHSA-w4qg-3vf7-m9x5
anticomputer Jul 12, 2023
f2bf883
Changelog and version bump for 0.29.0.12
Jul 12, 2023
f94b7ed
Merge pull request #339 from github/anticomputer-bump-version-0.29.0.12
anticomputer Jul 13, 2023
33ab1cd
Fix format specifier for printing a size_t
kevinbackhouse Jul 14, 2023
049a6e3
Merge pull request #340 from kevinbackhouse/printf-size_t
anticomputer Jul 20, 2023
c123e68
Merge pull request #336 from ioquatix/expose-footnote-def-literal
anticomputer Jul 20, 2023
63dd7b7
Merge pull request #273 from waldyrious/marker-vs-delimiter
anticomputer Jul 20, 2023
808bcfb
Changelog and version bump for 0.29.0.13
Jul 20, 2023
587a12b
Merge pull request #343 from github/anticomputer-bump-version-0.29.0.13
anticomputer Jul 21, 2023
1ef3f73
Merge tag '0.29.0.gfm.13' into QuietMisdreavus/gfm.13
QuietMisdreavus Jul 26, 2023
0c32508
move cell index into node_cell_data
QuietMisdreavus Jul 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
- cron: '45 14 * * 3'

jobs:
analyze:
name: Analyze
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'cpp', 'javascript', 'python', 'ruby' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project(cmark-gfm)
set(PROJECT_VERSION_MAJOR 0)
set(PROJECT_VERSION_MINOR 29)
set(PROJECT_VERSION_PATCH 0)
set(PROJECT_VERSION_GFM 11)
set(PROJECT_VERSION_GFM 13)
set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}.gfm.${PROJECT_VERSION_GFM})

include("FindAsan.cmake")
Expand Down
2 changes: 1 addition & 1 deletion api_test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ static void test_continuation_byte(test_batch_runner *runner,

char *html =
cmark_markdown_to_html(buf, strlen(buf), CMARK_OPT_VALIDATE_UTF8);
STR_EQ(runner, html, expected, "invalid utf8 continuation byte %d/%d", pos,
STR_EQ(runner, html, expected, "invalid utf8 continuation byte %zu/%zu", pos,
len);
free(html);
}
Expand Down
12 changes: 12 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
[0.29.0.gfm.13]
* Normalized marker row vs. delimiter row nomenclature (#273)
* Exposed CMARK_NODE_FOOTNOTE_DEFINITION literal value (#336)
* Fix format specifier for printing a size_t (#340)

[0.29.0.gfm.12]

* Fixed polynomial time complexity issues per
https://github.com/github/cmark-gfm/security/advisories/GHSA-w4qg-3vf7-m9x5
* Added CodeQL project integration (#337)
* Addressed const qualifier discard compiler warnings (#330, #331)

[0.29.0.gfm.11]

* Improved fixes for polynomial time complexity issues per
Expand Down
2 changes: 1 addition & 1 deletion extensions/autolink.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ static cmark_node *match(cmark_syntax_extension *ext, cmark_parser *parser,
// inline was finished in inlines.c.
}

static bool validate_protocol(char protocol[], uint8_t *data, size_t rewind, size_t max_rewind) {
static bool validate_protocol(const char protocol[], uint8_t *data, size_t rewind, size_t max_rewind) {
size_t len = strlen(protocol);

if (len > (max_rewind - rewind)) {
Expand Down
Loading