| Summary: | report-cli may crash if no configuration file is found for a reporter | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Kamil Dudka <kdudka> | ||||
| Component: | libreport | Assignee: | Nikola Pajkovsky <npajkovs> | ||||
| Status: | CLOSED ERRATA | QA Contact: | |||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 6.2 | CC: | dhoward, kklic, mnowak, npajkovs, rvokal | ||||
| Target Milestone: | rc | Keywords: | Patch | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | libreport-2.0.5-7.el6 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2011-12-06 12:19:26 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
Created attachment 518457 [details]
proposed fix
Is there some other way how to test presence of this bug other than by Coverity scan? I have no idea what the purpose of report-cli is. Ask the maintainers. commit f36806440b0b9d5d0dfa2e1c26d8695629c150ff
Author: Nikola Pajkovsky <npajkovs>
Date: Tue Aug 23 11:37:26 2011 +0200
Dereferencing null variable when config is missing
Signed-off-by: Nikola Pajkovsky <npajkovs>
(cherry picked from commit 863439314fef3ddff1b4db22d83295c23a387b07)
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. http://rhn.redhat.com/errata/RHBA-2011-1598.html |
Description of problem: > Error: FORWARD_NULL: > /builddir/build/BUILD/libreport-2.0.5/src/cli/cli-report.c:779: var_compare_op: Comparing "config" to null implies that "config" might be null. > /builddir/build/BUILD/libreport-2.0.5/src/cli/cli-report.c:786: var_deref_op: Dereferencing null variable "config". Version-Release number of selected component (if applicable): libreport-2.0.5-5.el6 Additional info: This defect was introduced in RHEL-6.2.