Skip to content
Snippets Groups Projects
Commit 935afe75 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix buffer overflow when upop() is called with a string > 73 chars

result in segfault (e.g. adding long filenames using fileman.js)
parent 90ff2f3f
No related branches found
No related tags found
No related merge requests found
Pipeline #7705 passed
......@@ -2752,6 +2752,8 @@ void upop(const char *str)
if(!width)
return;
width += 7;
if(width > 80)
width = 80;
vmem_gettext((api->scrn_width-width+1)/2+1,(api->scrn_len-3+1)/2+1
,(api->scrn_width+width-1)/2+1,(api->scrn_len+3-1)/2+1,sav);
for(i=0; i < width*3; i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment