Closed Disquse closed 4 months ago
Using an invalid marker type index will cause an OOB crash. This PR is meant to fix this issue.
By replacing the original native handler with one that includes marker type index checks.
FiveM, Natives
Game builds: 1604, 2060, 2189, 2372, 2545, 2612, 2699, 2802, 2944, 3095
Platforms: Windows, Linux
Addresses the problem reported in this forum topic: https://forum.cfx.re/t/drawmarker-causing-crash-when-you-enter-a-string-as-type-instead-of-a-integer/5236598
Goal of this PR
Using an invalid marker type index will cause an OOB crash. This PR is meant to fix this issue.
How is this PR achieving the goal
By replacing the original native handler with one that includes marker type index checks.
This PR applies to the following area(s)
FiveM, Natives
Successfully tested on
Game builds: 1604, 2060, 2189, 2372, 2545, 2612, 2699, 2802, 2944, 3095
Platforms: Windows, Linux
Checklist
Fixes issues
Addresses the problem reported in this forum topic: https://forum.cfx.re/t/drawmarker-causing-crash-when-you-enter-a-string-as-type-instead-of-a-integer/5236598