rive-app / rive-cpp-legacy

C++ runtime for Rive
MIT License
287 stars 43 forks source link

Mitigate SMIInput** overflow risk #229

Open luigi-rosso opened 2 years ago

luigi-rosso commented 2 years ago

Update StateInstance::advance to take the StateMachineInstance as an arguments instead of SMIInput** and use StateMachineInstance::input to get a range checked input.

https://github.com/rive-app/rive-cpp/blob/c43ce90e81c0a3608c5186f8c572cf480d1935bc/include/rive/animation/state_instance.hpp#L20