EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: [Bug 1943245] Re: epicsStrnEscapedFromRaw may print inclomplete escape sequences
From: Andrew Johnson via Core-talk <core-talk at aps.anl.gov>
To: core-talk at aps.anl.gov
Date: Wed, 11 May 2022 22:11:20 -0000
** Merge proposal linked:
   https://code.launchpad.net/~dougmurray/epics-base/+git/epics-base/+merge/422030

-- 
You received this bug notification because you are a member of EPICS
Core Developers, which is subscribed to EPICS Base.
Matching subscriptions: epics-core-list-subscription
https://bugs.launchpad.net/bugs/1943245

Title:
  epicsStrnEscapedFromRaw may print inclomplete escape sequences

Status in EPICS Base:
  New

Bug description:
  When epicsStrnEscapedFromRaw runs out of buffer space in the middle of an escape sequence, it prints incomplete and thus invalid sequences.
  For example printing "\xff" (1 byte 0xff) into a buffer that is too short may result in `\`, `\x`, or `\xf`. In particular a stray `\` at the end may be misinterpreted for example when the escaped string itself is printed in quotes and then the outer ending quote gets "escaped".

  Instead of printing incomplete sequences it should rather not print
  the sequence at all.

To manage notifications about this bug go to:
https://bugs.launchpad.net/epics-base/+bug/1943245/+subscriptions


Navigate by Date:
Prev: Re: [Merge] ~dougmurray/epics-base:fix-1943245 into epics-base:7.0 Andrew Johnson via Core-talk
Next: Build failed: epics-base base-ememfs-827 AppVeyor via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: [Bug 1943245] Re: epicsStrnEscapedFromRaw may print inclomplete escape sequences Andrew Johnson via Core-talk
Next: [Bug 1939568] Re: Writing to mbboDirect.VAL does not work any more in EPICS >= 3.15 Andrew Johnson via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·