samp-plugin-crashdetect
samp-plugin-crashdetect copied to clipboard
Fix lines table overflow detection segfault
Could you write a few lines to explain what this patch does? And where the values 33 and 0x10000 come from?
I think the title explains it pretty well. You're currently reading unmapped memory to find where the lines table ends, and (wrongly) expecting zeroes when you do (instead of garbage or an outright crash).
The values have to do with AMX structure. I honestly do not remember. This is tested, working, and most importantly correct (at least more than the original code...).
OK, that's great, thanks
Ended up implementing it a little differently in master.