Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
libXfont.5549
u_pcfGetProperties-Free-strings-if-we-bail-out....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File u_pcfGetProperties-Free-strings-if-we-bail-out.patch of Package libXfont.5549
Path-Mainline: To be upstreamed Author: Michal Srb <msrb@suse.com> Subject: pcfGetProperties: Free strings if we bail out. References: bnc#1049692 CVE-2017-13722 For example if the PCF file ends in the middle of the strings area. --- src/bitmap/pcfread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bitmap/pcfread.c b/src/bitmap/pcfread.c index dab1c44..4040675 100644 --- a/src/bitmap/pcfread.c +++ b/src/bitmap/pcfread.c @@ -247,7 +247,7 @@ pcfGetProperties(FontInfoPtr pFontInfo, FontFilePtr file, int i; CARD32 size; int string_size; - char *strings; + char *strings = 0; /* font properties */ @@ -324,6 +324,7 @@ pcfGetProperties(FontInfoPtr pFontInfo, FontFilePtr file, pFontInfo->nprops = nprops; return TRUE; Bail: + free(strings); free(isStringProp); free(props); return FALSE; -- 2.12.3
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