Experimental Physics and Industrial Control System
Public bug reported:
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.
** Affects: epics-base
Importance: Undecided
Status: New
--
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:
Build failed: pva2pva 1.0.34 AppVeyor via Core-talk
- Next:
Build failed: pva2pva 1.0.41 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>
2022
2023
2024
- Navigate by Thread:
- Prev:
Build failed: pva2pva 1.0.40 AppVeyor via Core-talk
- Next:
Build failed: pva2pva 1.0.41 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>
2022
2023
2024