ratalaika / angel-engine

Automatically exported from code.google.com/p/angel-engine
0 stars 0 forks source link

sscanf considered unsafe #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
sscanf can cause buffer overflows (and also is pretty opaque to usage).

In Colors.cpp
Line 130

Whole function could be replaced with:

int Color::HexToInteger(String hex)
{
    return strtol(hex.c_str(), NULL, 0);
}

to remove this error

Original issue reported on code.google.com by LoveOver...@gmail.com on 27 Sep 2013 at 7:55

GoogleCodeExporter commented 9 years ago
Fixed in repo. 

Original comment by lieseg...@gmail.com on 28 Sep 2013 at 1:53