EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Bug in macLib
From: Eric Norum <[email protected]>
To: Andrew Johnson <[email protected]>
Cc: Core-Talk <[email protected]>
Date: Tue, 30 Mar 2010 17:59:51 -0700
How about:

--- macCore.c.orig	2010-03-30 17:57:02.000000000 -0700
+++ macCore.c	2010-03-30 17:58:38.000000000 -0700
@@ -688,6 +688,9 @@
     /* return immediately if raw value is NULL */
     if ( *rawval == NULL ) return;
 
+    /* Ensure that there's at least space for a terminating '\0' */
+    if ((valend == *value) || (--valend == *value)) { entry->error = TRUE; return; }
+
     /* discard quotes and escapes if level is > 0 (i.e. if these aren't
        the user's quotes and escapes) */
     discard = ( level > 0 );

-- 
Eric Norum
[email protected]






References:
Bug in macLib Mark Rivers
Re: Bug in macLib Andrew Johnson
Re: Bug in macLib Eric Norum

Navigate by Date:
Prev: Re: Bug in macLib Eric Norum
Next: RE: Bug in macLib Mark Rivers
Index: 2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Bug in macLib Eric Norum
Next: RE: Bug in macLib Mark Rivers
Index: 2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·