Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Bugfix] Fix buffer overflow crash #1235
The game was often crashing with:
*** buffer overflow detected ***: /home/pp/rigs-of-rods/install/bin/RoR terminated
_ZN4Beam16updateDashBoardsEf+0x11f1 is in source/main/physics/Beam.cpp:
5105: char altc;
The largest int has 10 digits, so the terminating NULL overflows the buffer.