We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i find a Segmentation fault ,when i used md2html. commit cb7ecd7 ./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.
(gdb) set args --github crash1 (gdb) r Starting program: /opt/lxf/md4c/md2html/md2html --github crash1 Program received signal SIGSEGV, Segmentation fault. md_process_line (line=0x7fffffffde80, p_pivot_line=<synthetic pointer>, ctx=0x7fffffffdf30) at /opt/lxf/md4c/md4c/md4c.c:5824 5824 ctx->current_block->type = MD_BLOCK_TABLE; (gdb) bt #0 md_process_line (line=0x7fffffffde80, p_pivot_line=<synthetic pointer>, ctx=0x7fffffffdf30) at /opt/lxf/md4c/md4c/md4c.c:5824 #1 md_process_doc (ctx=0x7fffffffdf30) at /opt/lxf/md4c/md4c/md4c.c:5865 #2 md_parse (text=text@entry=0x627250 "", size=size@entry=8632, renderer=renderer@entry=0x7fffffffe1c0, userdata=userdata@entry=0x7fffffffe1a0) at /opt/lxf/md4c/md4c/md4c.c:5935 #3 0x0000000000403aa2 in md_render_html (input=input@entry=0x627250 "", input_size=input_size@entry=8632, process_output=process_output@entry=0x402280 <process_output>, userdata=userdata@entry=0x7fffffffe210, parser_flags=<optimized out>, renderer_flags=<optimized out>) at /opt/lxf/md4c/md2html/render_html.c:488 #4 0x0000000000401263 in process_file (out=0x7ffff7dd4400 <_IO_2_1_stdout_>, in=0x627010) at /opt/lxf/md4c/md2html/md2html.c:139 #5 main (argc=<optimized out>, argv=<optimized out>) at /opt/lxf/md4c/md2html/md2html.c:343 (gdb) p ctx->current_block $1 = (MD_BLOCK *) 0x0
this is the crash file : poc file
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
yes,with debug build ,i alse have hit the assertion.
Minimized the test case into
* x|x ---|---
e6e2ea4
No branches or pull requests
i find a Segmentation fault ,when i used md2html.
commit cb7ecd7
./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
The text was updated successfully, but these errors were encountered: