-- 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
<1997>
1998
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
<1997>
1998
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
|