summaryrefslogtreecommitdiff
path: root/tools/appveyor-build.bat
diff options
context:
space:
mode:
authorPhil Turnbull <philipturnbull@github.com>2018-02-16 13:25:56 -0500
committerPhil Turnbull <philipturnbull@github.com>2018-02-20 12:25:04 -0500
commite489ba4ccb92af53ea823223481005384fad5e14 (patch)
treec9c703979f23d0ec54c237cb9846f6f05907c26c /tools/appveyor-build.bat
parenta5c83d7a426bda38aac838f9815664f6189d3404 (diff)
Check for empty buffer when rendering
For empty documents, `->size` is zero so `renderer.buffer->ptr[renderer.buffer->size - 1]` will cause an out-of-bounds read. Empty buffers always point to the global `cmark_strbuf__initbuf` buffer so we read `cmark_strbuf__initbuf[-1]`.
Diffstat (limited to 'tools/appveyor-build.bat')
0 files changed, 0 insertions, 0 deletions