pBlueG / SA-MP-MySQL

MySQL plugin for San Andreas Multiplayer
BSD 3-Clause "New" or "Revised" License
196 stars 80 forks source link

crash on fetching a lot of rows #200

Open maddinat0r opened 6 years ago

maddinat0r commented 6 years ago

The plugin crashes if it fails to allocate the required memory for a result. Adding a null-pointer check for CResult::m_Data in all CResult functions should circumvent this. I also should add an error log message to make clear why all cache functions won't work in that case.

ghost commented 5 years ago

I encounter this issue on R41-4, it was unable to allocate memory and 'crashed due to an unknown error'. After downgrading to 41-2, it worked perfectly fine and didn't crash anymore.