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> 2025 | 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> 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Issue with medm's PV Info Message on Ubuntu 24.04 |
From: | "Soliday, Robert T. via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, Sang-Woo Kim <physwkim at postech.ac.kr> |
Date: | Fri, 31 May 2024 15:44:07 +0000 |
I have approved the changes in your github pull request and added them to a new release.
Thanks,
--Bob Soliday
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Sang-Woo Kim via Tech-talk <tech-talk at aps.anl.gov>
Sent: Friday, May 31, 2024 2:38 AM To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: Issue with medm's PV Info Message on Ubuntu 24.04 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 |