EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Bug in Burt
From: Graham Waters <[email protected]>
To: [email protected]
Date: Fri, 17 Jan 1997 12:29:22 -0800
-- In function BurtPreprocessFile() 'burtcommon.cc'

PROBLEM:
	The character buffer 'system_command' is allocated a size
	which assumes the default preprocessor args 'cc -C -E'

	If the string BURT_PREPROCESSOR defined in the make file
	is longer than the default a buffer overflow occurs. This
	is manifested in a crash when 'getc' is executed. (at least it does
	when compiled with gcc 2.7.2)

SOLUTION:
	replace the line:

	nbytes = strlen("cc -C -E ") + strlen(filename) + strlen(newfilename);

#ifdef BURT_PREPROCESSOR
	nbyte = strlen(BURT_PREPROCESSOR) + etc/etc
#else
	nbytes = strlen("cc -C -E ") + etc/etc

+-----------------------------------------------------------------------+
| Graham Waters, Control System Eng          Internet: [email protected] |
| TRIUMF --- University of British Columbia,	phone: (604)-222-1047   |
| Vancouver, BC, Canada                           Fax: (604)-222-7307   |
|                                                http://www.triumf.ca   |
+-----------------------------------------------------------------------+


Navigate by Date:
Prev: Re: Joerger VSC16/8 scaler support SARKAR
Next: Test Russell J. Page, Sr.
Index: 1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: video digitizer David Hardy
Next: Test Russell J. Page, Sr.
Index: 1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·