libsm64 / libsm64

Mario 64 as a library for use in external game engines
Creative Commons Zero v1.0 Universal
638 stars 39 forks source link

Null pointer dereference when calling sm64_global_terminate without creating a Mario #11

Closed khang06 closed 2 years ago

khang06 commented 2 years ago

s_mario_geo_pool is only ever initialized in sm64_mario_create, but sm64_global_terminate tries to free it regardless of whether or not it's actually initialized, leading to a crash.