Closed Edward-L closed 6 years ago
Thanks for reporting.
Successfully reproduced.
but i find you did the assert in https://github.com/mity/md4c/blob/master/md4c/md4c.c#L5822,i dont know why it does not work.
Perhaps you have built release build? With debug build, I've hit the assertion.
yes,with debug build ,i alse have hit the assertion.
Minimized the test case into
* x|x
---|---
i find a Segmentation fault ,when i used md2html. commit cb7ecd713593acef78f2698f6c5a5a59a2745b6f ./md2html --github crash1
it is a NULL pointer dereferenc in https://github.com/mity/md4c/blob/master/md4c/md4c.c#L5824. ctx->current_block is a null pointer. but i find you did the assert in https://github.com/mity/md4c/blob/master/md4c/md4c.c#L5822,i dont know why it does not work. i just git clone it and use cmake . and make to build it.
this is the crash file : poc file