EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Bug on alh (alarm handler) 1.2.26 alConfig.c file
From: <[email protected]>
To: <[email protected]>
Date: Wed, 29 Jun 2011 12:17:51 +1000
Hi,

When defining a PV name longer than 32 characters in $FORCEPV statement in the alarm configuration file, the PV name actually gets truncated (alh 1.2.26 version). After digging a little bit in the alh code, I noticed that in alConfig.c line 494:

rtn = sscanf(buf,"%20s%32s%6s%lf%9s",command,name,mask,&dbl,string);

the PV name (name variable) is limited to 32 characters. I think it should be either %s or limited to 64 characters.

Regards,
  Juan Carlos.

----------
Juan Carlos Guzman
Software Engineer
Australia Telescope National Facility
CSIRO Astronomy and Space Science
P.O.Box 76, Epping NSW 1710, Australia
Phone: +61 2 9372 4457
Fax: +61 2 9372 4310
Email: [email protected]








Replies:
Re: Bug on alh (alarm handler) 1.2.26 alConfig.c file Andrew Johnson

Navigate by Date:
Prev: problem using asyn 4-15 with VxWorks and UDP sockets to connect with CryoCon24 temperature monitor Jay Steele
Next: Re: Record Alarm/ AsynPortDriver reem ateia
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: problem using asyn 4-15 with VxWorks and UDP sockets to connect with CryoCon24 temperature monitor Jay Steele
Next: Re: Bug on alh (alarm handler) 1.2.26 alConfig.c file Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·