Skip to content
New issue

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

StripDown causes a core dump when passed quote: true #639

Comments

@WillHennessey
Copy link

Hi guys, I've encountered an issue with the StripDown renderer, I've added an example so you can reproduce the issue below. I've also included a shortened version of the core dump error message

string = "\"Some inspirational BS\""
markdown = Redcarpet::Markdown.new(Redcarpet::Render::StripDown, quote: true)
markdown.render(string)
7f7242141000-7f7242146000 rw-p 00000000 00:00 0                          [stack:24023]
7f7242146000-7f7242147000 r--p 00022000 08:01 2025                       /lib/x86_64-linux-gnu/ld-2.19.so
7f7242147000-7f7242148000 rw-p 00023000 08:01 2025                       /lib/x86_64-linux-gnu/ld-2.19.so
7f7242148000-7f7242149000 rw-p 00000000 00:00 0 
7ffeae7a9000-7ffeaefa9000 rw-p 00000000 00:00 0 
7ffeaefab000-7ffeaefad000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]


[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
@robin850
Copy link
Collaborator

Hello @WillHennessey,

Thank you very much for reporting this, this has been fixed by 92a7b3a. This will be available in the next release of Redcarpet !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment