Description of problem:
It appears that the upstream developers have been responding to reports of warnings and bugs caused by swig that are found by Coverity. You can see a list here:
What I would like to ask is that 4 of the patches be considered for backport to the current version so that code that depends on swig to generate bindings in other languages (python in particular) pass Coverity scans with less warnings and bugs as the case may be.
The patches are:
This ^^ appears to be safe. It switches out a strnlen for a memcpy.
This ^^ is another simple fix. It adds a check for the string end
This ^^ appears to fix a bug reported by Coverity where the bindings could cause the app to segfault on a NULL pointer dereference.
This ^^ appears to fix a bug where the control flow cannot reach a line of code. This usually means a logic fault.
What do you think?
Version-Release number of selected component (if applicable):
I'll apply the patches. I tried to use them and all upstream tests passed.
swig-3.0.12-17.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-48e225b5f5
swig-3.0.12-17.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-48e225b5f5
swig-3.0.12-17.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.