Projects
openEuler:Mainline
fakechroot
_service:tar_scm:534e6d555736b97211523970d378df...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:534e6d555736b97211523970d378dfb0db2608e9.patch of Package fakechroot
From 534e6d555736b97211523970d378dfb0db2608e9 Mon Sep 17 00:00:00 2001 From: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com> Date: Mon, 22 Feb 2021 21:44:07 -0800 Subject: [PATCH] tmpnam.c: fix heap overflow Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com> --- src/tmpnam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tmpnam.c b/src/tmpnam.c index ce60817..917ee6b 100644 --- a/src/tmpnam.c +++ b/src/tmpnam.c @@ -42,7 +42,7 @@ wrapper(tmpnam, char *, (char * s)) expand_chroot_path(ptr); - ptr2 = malloc(strlen(ptr)); + ptr2 = malloc(strlen(ptr) + 1); if (ptr2 == NULL) return NULL; strcpy(ptr2, ptr);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2