From 5d6bbfa3833df6a17b169e7978e63d0850897de2 Mon Sep 17 00:00:00 2001 From: Zachary Pavlov Date: Mon, 16 Jul 2007 18:04:52 +0000 Subject: [PATCH] buffer overflow fix when compiling with vc8 --- ppremake/ppCommandFile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppremake/ppCommandFile.cxx b/ppremake/ppCommandFile.cxx index 2d7ca71a60..14ea635742 100644 --- a/ppremake/ppCommandFile.cxx +++ b/ppremake/ppCommandFile.cxx @@ -462,7 +462,7 @@ read_line(string line) { } } - if (!_in_for && !failed_if()) { + if (!_in_for && !failed_if() && line.length() > p+1) { if(line[p+1]==COMMAND_PREFIX) { // double prefix at start of line indicates echo single prefix, like '\\' in C line.erase(0,1);