I do not know if you are aware of CVE issue in your project, so I am attaching a link: https://nvd.nist.gov/vuln/detail/CVE-2021-27211.
If this could be fixed, it would be great, but I am not able to fix it myself due to low knowledge of C/C++.
Notice: I transferred this issue from old project (StegHigh/steghide#15), as suggested.