jgm / djot

A light markup language
https://djot.net
MIT License
1.66k stars 43 forks source link

Fuzz failure #110

Closed jgm closed 1 year ago

jgm commented 1 year ago
% echo "\r{" | ./run.sh 
lua: attempt to get length of a nil value
stack traceback:
        [C]: in function 'table.unpack'
        ./djot/inline.lua:615: in method 'get_matches'
        ./djot/block.lua:612: in method 'get_inline_matches'
        ./djot/block.lua:182: in method 'close'
        ./djot/block.lua:786: in for iterator 'for iterator'
        ./djot/ast.lua:807: in function 'djot.ast.to_ast'
        ./djot.lua:35: in function <./djot.lua:33>
        (...tail calls...)
        bin/main.lua:86: in main chunk
        [C]: in ?