summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-11-02Merge branch 'master' into upstream/inline-sourceposAshe Connor
2017-10-21Updated changelog.John MacFarlane
2017-10-21BUmp to 0.28.3John MacFarlane
2017-10-20Merge pull request #240 from nwellnhof/add-cmake-includeJohn MacFarlane
Include GNUInstallDirs in src/CMakeLists.txt
2017-10-19Include GNUInstallDirs in src/CMakeLists.txtNick Wellnhofer
Fixes installation error under some CMake versions, notably kalakris' CMake backport often used with Travis.
2017-10-12Bump to 0.28.2, update changelog.John MacFarlane
2017-10-12Fixed regression in install dest for static library.John MacFarlane
Due to a mistake, 0.28.1 installed libcmark.a into include/. Closes #238.
2017-10-10Bump to 0.28.1, update changelog.John MacFarlane
2017-10-10Don't use CMAKE_INSTALL_LIBDIR to create libcmark.pc.John MacFarlane
For some reason this wasn't getting set in processing libcmark.pc.in, and we were getting the wrong entry in libcmark.pc. (See #236) The new approach sets an internal libdir variable to lib${LIB_SUFFIX}. This variable is used both to set the install destination and in the libcmark.pc.in template. Closes #236. However, I'd welcome comments from @juhp who originally added CMAKE_INSTALL_LIBDIR in #185. I think that the new system should work fine with Fedora, since LIB_SUFFIX will be set appropriately, but some testing is in order.
2017-09-13Merge pull request #232 from github/upstream/refparseJohn MacFarlane
blocks: Fix quadratic behavior in `finalize`
2017-09-14blocks: Fix quadratic behavior in `finalize`Vicent Marti
2017-08-10Skip sourcepos tracking if disabledYuki Izumi
2017-08-10Fix inlines spanning newlines, text in non-paraYuki Izumi
2017-08-09--smart: open quote can never occur right after `]` or `)`.John MacFarlane
Closes #227.
2017-08-09Add sourcepos info for inlinesYuki Izumi
2017-08-03Merge pull request #224 from pclouds/make-format-source-codeJohn MacFarlane
`make format` the source code
2017-08-03Reformat source code with 'make format'Nguyễn Thái Ngọc Duy
2017-08-03Update README.md, replace 'make astyle' with 'make format'Nguyễn Thái Ngọc Duy
The former has been replaced by the latter since 62cb38b (Use clang-format, llvm style, for formatting. - 2015-07-27) dòng được
2017-08-02Merge pull request #222 from PavloKapyshin/masterJohn MacFarlane
Fix typo
2017-08-02Fix typoPavlo Kapyshin
2017-08-01Update spec.John MacFarlane
2017-08-01Update changelog.John MacFarlane
2017-08-01Merge branch 'master' of github.com:jgm/cmarkJohn MacFarlane
2017-08-01Merge pull request #221 from pclouds/document-validate-utf8John MacFarlane
Advertise --validate-utf8 in usage information
2017-08-01Update changelog.John MacFarlane
2017-08-01Bump version to 0.28.0.John MacFarlane
2017-08-01Update spec.John MacFarlane
2017-08-01Advertise --validate-utf8 in usage informationNguyễn Thái Ngọc Duy
This option was added in 04726a7 (Added `CMARK_OPT_VALIDATE_UTF8` option. - 2015-06-16) but not "documented".
2017-07-25Merge pull request #219 from github/upstream/left-angle-linkJohn MacFarlane
Fix URL scanner
2017-07-17Fix URL scanner.Yuki Izumi
2017-07-13Reverted mistaken fix to #193.John MacFarlane
Commit 14ea489f5dd6e3d07e23f104d6c9ce441d05751b
2017-07-11Merge pull request #213 from github/upstream/undefined-shiftJohn MacFarlane
Use unsigned integer when shifting
2017-07-11Merge pull request #212 from github/upstream/memcpy-nonnullJohn MacFarlane
Avoid memcpy'ing NULL pointers
2017-07-11Use unsigned integer when shiftingPhil Turnbull
A UBSAN warning can be triggered when handling a long sequence of backticks: src/commonmark.c:98:20: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' which can be triggered by: ``` | a | b | | --- | --** `c```````````````````````````````- | | c | `|d` \| e | ```
2017-07-06Avoid memcpy'ing NULL pointersPhil Turnbull
A UBSAN warning can be triggered because the link title is an empty string: src/inlines.c:113:20: runtime error: null pointer passed as argument 2, which is declared to never be null which can be triggered by: ``` [f]:_ [f] ``` The length of the memcpy is zero so the NULL pointer is not dereferenced but it is still undefined behaviour.
2017-06-29Updated spec.txt.John MacFarlane
2017-06-29DeMorgan simplification of some tests in emphasis parser.John MacFarlane
This also brings the code into closer alignment with the wording of the spec. See jgm/CommonMark#467.
2017-06-29Fixed undefined shift in commonmark writer.John MacFarlane
Closes #211. Found by google/oss-fuzz: https://oss-fuzz.com/v2/testcase-detail/4686992824598528
2017-06-29latex writer: fix memory overflow.John MacFarlane
We got an array overflow in enumerated lists nested more than 10 deep with start number =/= 1. Found by google/oss-fuzz. https://oss-fuzz.com/v2/testcase-detail/5546760854306816 This commit also ensures that we don't try to set `enum_` counters that aren't defined by LaTeX (generally up to enumv). Closes #210.
2017-06-29Makefile: add libFuzzer to phonyJohn MacFarlane
2017-06-27Merge pull request #209 from philipturnbull/libFuzzerJohn MacFarlane
Add libFuzzer harness for oss-fuzz
2017-06-27Check for NULL pointer in get_link_typePhil Turnbull
echo '[](xx:)' | ./build/src/cmark -t latex Segmentation fault: 11
2017-06-27Add Makefile target and harness to fuzz with libFuzzerPhil Turnbull
This can be run locally with `make libFuzzer` but the harness will be integrated into oss-fuzz for large-scale fuzzing.
2017-06-27Move fuzzing dictionary into single filePhil Turnbull
This allows AFL and libFuzzer to use the same dictionary
2017-06-23Add hyphen to dictionaryPhil Turnbull
2017-06-23Merge pull request #207 from github/upstream/oob-readJohn MacFarlane
Reset bytes after (possible) UTF8 proc
2017-06-23Reset bytes after UTF8 procYuki Izumi
See https://github.com/jgm/cmark/issues/206.
2017-06-21Merge pull request #205 from github/dont-scan-past-eolJohn MacFarlane
Don't scan past an EOL. The existing negated character classes ([^…]) are careful to always include \x00 in the characters excluded, but these . catch-alls can scan right past the terminating NUL placed at the end of the buffer by _scan_at. As such, buffer overruns can occur. Also, don't scan past a newline in HTML block end scanners.
2017-06-21Don't scan past newline eitherYuki Izumi
2017-06-21Don't scan past an EOLYuki Izumi