Bug 1035742

Summary: rasdaemon: sizeof applied to pointer, not array
Product: Red Hat Enterprise Linux 7 Reporter: Florian Weimer <fweimer>
Component: rasdaemonAssignee: Aristeu Rozanski <arozansk>
Status: CLOSED ERRATA QA Contact: Andrej Manduch <amanduch>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: emcnabb, lilu, qzhao, rpacheco
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rasdaemon-0.4.1-8.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 11:07:44 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:
Bug Depends On:    
Bug Blocks: 1035740    

Description Florian Weimer 2013-11-28 11:17:24 UTC
This code in mce-amd-k8.c:bank_name() does not work as expected due to array-to-pointer decay:

	char *buf = e->bank_name;
        ...
	snprintf(buf, sizeof(buf), "%s (bank=%d)", s, e->bank);

Comment 2 RHEL Program Management 2014-03-22 06:26:49 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 8 errata-xmlrpc 2015-03-05 11:07:44 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://rhn.redhat.com/errata/RHBA-2015-0510.html