Commit 01031c1
fix lua SPDEBUG NULL dereference on gbl_break_spname
gbl_break_spname can be NULL when debug_sp() sets it from an
uninitialized local. Add NULL guards before strcasecmp/strncasecmp
in db_debug() and InstructionCountHook() to prevent crash when
SET SPDEBUG ON is used without a fully established debug session.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 20fa1da commit 01031c1
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1578 | 1578 | | |
1579 | 1579 | | |
1580 | 1580 | | |
1581 | | - | |
| 1581 | + | |
1582 | 1582 | | |
1583 | 1583 | | |
1584 | 1584 | | |
| |||
2080 | 2080 | | |
2081 | 2081 | | |
2082 | 2082 | | |
2083 | | - | |
| 2083 | + | |
2084 | 2084 | | |
2085 | 2085 | | |
2086 | 2086 | | |
| |||
0 commit comments