summaryrefslogtreecommitdiff
path: root/test/cmark.py
AgeCommit message (Collapse)Author
2017-01-03Revert "Change types for source map offsets (#174)"John MacFarlane
This reverts commit 4fbe344df43ed7f60a3d3a53981088334cb709fc.
2016-12-30Change types for source map offsets (#174)Nick Wellnhofer
* Improve strbuf guarantees Introduce BUFSIZE_MAX macro and make sure that the strbuf implementation can handle strings up to this size. * Abort early if document size exceeds internal limit * Change types for source map offsets Switch to size_t for the public API, making the public headers C89-compatible again. Switch to bufsize_t internally, reducing memory usage and improving performance on 32-bit platforms. * Make parser return NULL on internal index overflow Make S_parser_feed set an error and ignore subsequent chunks if the total input document size exceeds an internal limit. Make cmark_parser_finish return NULL if an error was encountered. Add public API functions to retrieve error code and error message. strbuf overflow in renderers and OOM in parser or renderers still cause an abort.
2016-06-06Fix ctypes in Python FFI callsNick Wellnhofer
This didn't cause problems so far because - all types are 32-bit on 32-bit systems and - arguments are passed in registers on x86-64. The wrong types could cause crashes on other platforms, though.
2016-06-02cmark.py: added to_commonmark (for round-trip tests).John MacFarlane
2016-05-17Fix tests under MinGWNick Wellnhofer
- Fix PATH for api_test, see: https://cmake.org/pipermail/cmake/2009-May/029423.html - DLL is named libcmark.dll under MinGW.
2015-04-26Use os.path.join in test/cmark.py.John MacFarlane
For proper cross-platform paths.
2015-03-21test/cmark.py: set default options for markdown_to_html.John MacFarlane
2014-12-31Fix spec tests on WindowsNick Wellnhofer
2014-12-29Updated tests to use python3.John MacFarlane
2014-11-29Factored out cmark.py from test programs.John MacFarlane