Projects
openEuler:24.03:SP1:Everything:64G
libpaper
_service:tar_scm:libpaper-file-leak.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:libpaper-file-leak.patch of Package libpaper
diff -up libpaper-1.1.24+nmu5/lib/paper.c.file-leak libpaper-1.1.24+nmu5/lib/paper.c --- libpaper-1.1.24+nmu5/lib/paper.c.file-leak 2018-03-09 16:21:01.028345956 +0100 +++ libpaper-1.1.24+nmu5/lib/paper.c 2018-03-09 16:40:57.824279357 +0100 @@ -140,7 +140,7 @@ char* systempapername(void) { char* paperstr; char* paperenv; const char* paperdef; - FILE* ps; + FILE* ps = NULL; struct stat statbuf; const struct paper* pp; int c; @@ -224,6 +224,9 @@ PAPERSIZEVAR, fall-back to the old behav } } + if (ps) + fclose(ps); + paperdef = defaultpapername(); paperstr = malloc((strlen(paperdef) + 1) * sizeof(char));
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