-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(gta-core-five): validate bounds collisions #3182
base: master
Are you sure you want to change the base?
Conversation
for where you defined the phBound structs, would it be possible to use the already defined ones inside rage-formats-x component to prevent duplicating code? https://github.com/citizenfx/fivem/tree/master/code/components/rage-formats-x/include |
I didn't realize that, I'll do it thanks |
Can the |
You can add "rage:formats:x" as a dependency in component.json and rerun |
I've tried using |
Probably best to leave it how you have it originally then |
Is there a way to block this using natives for now until you get approval? |
Goal of this PR
Fix a game crash when two collisions collide with each other without having a valid m_Bounds. This is happening for specific objects, mostly testing objects that are not used in the map but are spawned by malicious players to make people nearby crash. By default when spawning the prop there is no problem, but if the player or something external hits a sub-object that makes it move and collide with another sub-object of the same object it will reproduce this crash.
How is this PR achieving the goal
Hooking the
ProcessSelfCollision
function and validating that theboundComposite
andboundComposite->m_Bounds
are validThis PR applies to the following area(s)
FiveM
Successfully tested on
Game builds: 1, 1604, 2060, 2189, 2372, 2545, 3095, 3258, 3407
Platforms: Windows
Checklist
Fixes issues
fixes #3173