Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
ppc64-diag.636
ppc64-diag.rtas_errd-LE-fixes-for-extract_platd...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ppc64-diag.rtas_errd-LE-fixes-for-extract_platdump.patch of Package ppc64-diag.636
From 852c42d36ee94f41d9a314eb7fde7c3486a89ffd Mon Sep 17 00:00:00 2001 From: "Suzuki K. Poulose" <suzuki@in.ibm.com> Date: Tue, 9 Sep 2014 15:24:49 -0400 Subject: [PATCH 2/3] rtas_errd: LE fixes for extract_platdump Exit with error when we can't retrieve a dump for an invalid dump ID. Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> --- rtas_errd/extract_platdump.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rtas_errd/extract_platdump.c b/rtas_errd/extract_platdump.c index 75be727..b9afdde 100644 --- a/rtas_errd/extract_platdump.c +++ b/rtas_errd/extract_platdump.c @@ -226,6 +226,13 @@ extract_platform_dump(uint64_t dump_tag) ret = 1; goto platdump_error_out; } + /* If we didn't read enough bytes, handle it */ + if (bytes <= 0) { + msg("Platform dump with id: 0x%016LX is either invalid " + "or empty\n", dump_tag); + ret = 1; + goto platdump_error_out; + } seq = seq_next; -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor