[GME-commit] GMESRC/SDK/BON/tools/ComponentConfig EventMaskDialog.cpp,1.2,1.3

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Wed Jun 8 00:56:00 CDT 2005


Update of /project/gme-repository/GMESRC/SDK/BON/tools/ComponentConfig
In directory escher:/tmp/cvs-serv22695

Modified Files:
	EventMaskDialog.cpp 
Log Message:
Buffer overflow (infinite loop as consequence) when got line 91 of Mga.idl.
Buffer enlarged.


CVS User: Zoltan Molnar, ISIS (zolmol)

Index: EventMaskDialog.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/SDK/BON/tools/ComponentConfig/EventMaskDialog.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** EventMaskDialog.cpp	16 Apr 2004 10:45:08 -0000	1.2
--- EventMaskDialog.cpp	7 Jun 2005 23:55:58 -0000	1.3
***************
*** 79,84 ****
  	if(fin.rdstate() == ios::goodbit) {
  	  while(!fin.eof()) {
! 		char buf[100]; 
! 		fin.getline(buf, 100);
  		if(!fin.eof()) {
  			unsigned long mmask;
--- 79,84 ----
  	if(fin.rdstate() == ios::goodbit) {
  	  while(!fin.eof()) {
! 		char buf[250]; //buffer enlarged from 100
! 		fin.getline(buf, 250);
  		if(!fin.eof()) {
  			unsigned long mmask;



More information about the GME-commit mailing list