Fix the macLib buffer overflow issue, Bug 551909.

This is mostly Eric's patches, without the valend name change.
This commit is contained in:
Andrew Johnson
2010-05-04 15:43:20 -05:00
parent 5868aae543
commit 831f48e719
5 changed files with 53 additions and 30 deletions
+1 -1
View File
@@ -314,7 +314,7 @@ static int db_yyinput(char *buf, int max_size)
pinputFileNow->fp);
if(fgetsRtn) {
n = macExpandString(macHandle,mac_input_buffer,
my_buffer,MY_BUFFER_SIZE-1);
my_buffer,MY_BUFFER_SIZE);
if(n<0) {
errPrintf(0,__FILE__, __LINE__,
"macExpandString failed for file %s",