Bug 1570037 - Backport upstream Coverity fixes
Summary: Backport upstream Coverity fixes
Alias: None
Product: Fedora
Classification: Fedora
Component: swig
Version: 28
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Jitka Plesnikova
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2018-04-20 13:28 UTC by Steve Grubb
Modified: 2018-05-11 11:10 UTC (History)
4 users (show)

Fixed In Version: swig-3.0.12-17.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-05-04 05:48:06 UTC
Type: Bug

Attachments (Terms of Use)

Description Steve Grubb 2018-04-20 13:28:05 UTC
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):

Comment 1 Jitka Plesnikova 2018-04-25 07:24:39 UTC
I'll apply the patches. I tried to use them and all upstream tests passed.

Comment 2 Fedora Update System 2018-04-25 13:47:35 UTC
swig-3.0.12-17.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-48e225b5f5

Comment 3 Fedora Update System 2018-04-26 04:53:20 UTC
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

Comment 4 Fedora Update System 2018-05-03 15:26:15 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.