Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:Update
biosdevname.16311
biosdevname-Fix-use-after-free-of-fd.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File biosdevname-Fix-use-after-free-of-fd.patch of Package biosdevname.16311
From d1d62966032784f292e6875ba4373b18149a5754 Mon Sep 17 00:00:00 2001 From: Michal Sekletar <msekleta@redhat.com> Date: Tue, 22 Dec 2015 10:34:16 +0100 Subject: [PATCH] Fix use-after-free of fd Patch-mainline: v0.7.3 Git-commit: d1d62966032784f292e6875ba4373b18149a5754 This bug got introduced in 51219cac581b5eaced5b172dbbb4586889cb27e1. I overlooked that we are already properly closing fd on non-error code path and I added redundant call to close. Closing already closed fd is harmless though. Function returns EBADF and fails silently. --- src/dmidecode/util.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/dmidecode/util.c b/src/dmidecode/util.c index 3340e1f..ea06663 100644 --- a/src/dmidecode/util.c +++ b/src/dmidecode/util.c @@ -162,6 +162,5 @@ void *mem_chunk(size_t base, size_t len, const char *devmem) if(close(fd)==-1) perror(devmem); - close(fd); return p; } -- 2.28.0
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