Bug 1504157

Summary: Fix Covscan detected programming errors
Product: Red Hat Enterprise Linux 7 Reporter: Phil Sutter <psutter>
Component: nftablesAssignee: Phil Sutter <psutter>
Status: CLOSED ERRATA QA Contact: Tomas Dolezal <todoleza>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.5CC: atragler, jmaxwell, rkhan, todoleza
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nftables-0.8-9.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 10:38:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
scan results
none
scan-results.err
none
scan-results.err none

Description Phil Sutter 2017-10-19 15:01:40 UTC
Created attachment 1340813 [details]
scan results

Coverity tool found the following problems in nftables-0.8-4.el7, see attached scan log.

Comment 2 Phil Sutter 2017-12-14 13:10:22 UTC
Created attachment 1367979 [details]
scan-results.err

Comment 3 Phil Sutter 2017-12-14 14:16:05 UTC
Created attachment 1368014 [details]
scan-results.err

Comment 4 Phil Sutter 2018-03-02 10:55:31 UTC
This is the list of commits to backport:

7f31d3191622b Review switch statements for unmarked fall through cases
657472843e7a7 monitor: Make trace events respect output_fp
59034b47590d7 monitor: Make JSON/XML output respect output_fp
f51ed1db70abd cli: Drop pointless check in cli_append_multiline()
3570b6bc8b4f1 erec: Avoid passing negative offset to fseek()
edcf3adcf4c4c evaluate: Fix memleak in stmt_reject_gen_dependency()
5043a1e4847c0 hash: Fix potential null-pointer dereference in hash_expr_cmp()
4342fcbd40534 netlink: Complain if setting O_NONBLOCK fails
671851617c8d8 netlink_delinearize: Fix resource leaks

Comment 10 errata-xmlrpc 2018-10-30 10:38:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3154