Closed vertexi closed 7 months ago
Hum, it seems like you spotted a segfault here! I see that you forked the repo. Would you like to post a related PR?
Many thanks!
I will prepare a fix quickly, please tell me if it solves the issue.
(the fix is not that easy, because the code is in a fork of ImGui that I maintain)
It should be ok now, please let me know if it is ok on your side
Looks good. Nice job! Thank you.
When dynamically initializing the
DemoCodeWindow GDemoCodeWindow;
variable, theisspace
function inside theCodeLineStartsWith()
be called. Because of the initial value athaystack
is negative, thec >= -1 && c <= 255
Debug assertion failed insideisspace()
.https://github.com/pthom/imgui/blame/812f25683087ec5ca6c0802da6e40f682459ae25/imgui_demo.cpp#L8945
Maybe initialize the
char line_buffer[2048];
to zeros?