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  2011  2012  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  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024
<== Date ==> <== Thread ==>

Subject: Issue with medm's PV Info Message on Ubuntu 24.04
From: Sang-Woo Kim via Tech-talk <tech-talk at aps.anl.gov>
To: <tech-talk at aps.anl.gov>
Date: Fri, 31 May 2024 16:38:49 +0900
Dear Techtalk Community,

I am writing to bring to your attention an issue we encountered with the PV Info message in the medm application on Ubuntu 24.04. The use of `sprintf` for overlapping buffer read/write operations has led to undefined behavior. The `sprintf` function was reading from and writing to the same buffer, causing memory overlap issues and unexpected results.

We have addressed this problem by replacing `sprintf` with `snprintf`, ensuring safe string concatenation and buffer management. The changes have been tested on Ubuntu 24.04 and have resolved the issue.

For more details, you can review the pull request here: https://github.com/epics-extensions/medm/pull/8

Best regards,

Sang-Woo Kim
PLS-II, PAL, South Korea

Replies:
Re: Issue with medm's PV Info Message on Ubuntu 24.04 Soliday, Robert T. via Tech-talk

Navigate by Date:
Prev: Re: CryoTel GT Cooler: different startup and shutdown StreamDevice protocols boj via Tech-talk
Next: Suspended task in connection with autosave Heinz Junkes via Tech-talk
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: Re: [EXTERNAL] pv.read() after pv.write() returns old value instead of new value using org.phoebus.pv.PV Kasemir, Kay via Tech-talk
Next: Re: Issue with medm's PV Info Message on Ubuntu 24.04 Soliday, Robert T. via Tech-talk
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
ANJ, 31 May 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·