summaryrefslogtreecommitdiff
path: root/man/man1
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 /man/man1
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 'man/man1')
0 files changed, 0 insertions, 0 deletions