mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-14 04:49:41 -07:00
full line bounds check in intermixed dasm
This commit is contained in:
1 parent
4aeb6d7d03
commit
f45ea18f24
1 file changed
+1
-1
@@ -495,7 +495,7 @@ dasm_parse_thread__entry_point(void *p)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(line->line_num < text_info.lines_count)
|
||||
if(0 < line->line_num && line->line_num < text_info.lines_count)
|
||||
{
|
||||
String8 data = hs_data_from_hash(hs_scope, hash);
|
||||
String8 line_text = str8_skip_chop_whitespace(str8_substr(data, text_info.lines_ranges[line->line_num-1]));
|
||||
|
||||
Reference in new issue
Block a user