Created attachment 1981494 [details] GDB Backtrace Description of problem: Attempting to generate a datamatrix with the dmtxwrite utility results in a buffer overflow error and termination. Version-Release number of selected component (if applicable): 0.7.6-14.fc38 How reproducible: [user@fedora38 ~]# cat /etc/fedora-release | dmtxwrite -o release.png *** buffer overflow detected ***: terminated Aborted (core dumped) Actual results: Crash Expected results: release.png image created Additional info: backtrace attached
Created attachment 1981565 [details] Proposed patch to fix buffer overflow
dmtxwrite appears completely broken when _FORTIFY_SOURCE=3 is used. The attached patch attempts to fix the source.
Thanks, seems _FORTIFY_SOURCE=3 is doing its work. Could you open an upstream PR (https://github.com/dmtx/dmtx-utils/pulls) as well so I can I refer it in the package?
Upstream pull request is here: [https://github.com/dmtx/dmtx-utils/pull/16](https://github.com/dmtx/dmtx-utils/pull/16)