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/8Best regards,
Sang-Woo Kim
PLS-II, PAL, South Korea