Commit 6347b60
authored
PRVM_GarbageCollection: Add range check on string garbage collection (#294)
When using FTEQCC structs, it's possible for string variables to be
outside the string global space. This can cause the garbage collector to
segfault. This PR checks that the index is within bounds and will
display a debug message and skip any that are not.1 parent c6b823c commit 6347b60
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3817 | 3817 | | |
3818 | 3818 | | |
3819 | 3819 | | |
| 3820 | + | |
| 3821 | + | |
| 3822 | + | |
| 3823 | + | |
| 3824 | + | |
| 3825 | + | |
3820 | 3826 | | |
3821 | 3827 | | |
3822 | 3828 | | |
| |||
0 commit comments