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

Fix potential buffer overflow some long ANSI sequences

Increase ansicode[] buffer size from 20 to 200 bytes due to this observed
crash when attempting to load an ANS file saved from PabloDraw:
parent 1900aec7
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
Pipeline #6336 passed
......@@ -229,7 +229,7 @@ unsigned char pcb_color = FALSE, pcb_code = FALSE, d, pcb_col = 0;
unsigned char ans_esc = FALSE, ans_code = FALSE, ans_rep, e, ans_attr = 0;
unsigned char sync_code = FALSE;
int acx, acy;
char ansicode[20];
char ansicode[200];
char copytmp[20];
char code[20];
......
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