From f7ca9005ce24dd484e372a643feffac2efceb295 Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Thu, 20 Oct 2011 17:18:19 +0200 Subject: [PATCH] Double the char value in the signs parser to prevent an out of bounds segfault. --- src/Airports/GenAirports850/linked_objects.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Airports/GenAirports850/linked_objects.cxx b/src/Airports/GenAirports850/linked_objects.cxx index bd8f358c..aba91aa2 100644 --- a/src/Airports/GenAirports850/linked_objects.cxx +++ b/src/Airports/GenAirports850/linked_objects.cxx @@ -18,7 +18,7 @@ Beacon::Beacon( char* definition ) Sign::Sign( char* definition ) { - char sgdef[128]; + char sgdef[256]; sscanf(definition, "%lf %lf %lf %d %d %s", &lat, &lon, &heading, &reserved, &size, sgdef );