Advertisement

Potential crash in manual's example

Started by February 07, 2009 08:44 AM
0 comments, last by WitchLord 15 years, 9 months ago
The Your first script page of the online manual contains code for a helper function print that passes an unchecked format string to printf. If that string contains some formatting symbols like %s, the application is likely to crash. Since users may be likely to copy that function without thinking, I believe it's important to fix this - either by changing the call to printf("%s", msg.c_str()); or by using an altogether more C++-ish method.
Widelands - laid back, free software strategy
Good catch. I'll have this updated before releasing 2.15.2.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement