Projects
openEuler:22.03:LTS:LoongArch
libxml2
_service:tar_scm_kernel_repo:backport-Avoid-dou...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm_kernel_repo:backport-Avoid-double-free-if-malloc-fails-in-inputPush.patch of Package libxml2
From ecba4cbd4335b31aa7a815701971ed09cfffea9b Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer <wellnhofer@aevum.de> Date: Tue, 28 Jun 2022 19:22:31 +0200 Subject: [PATCH] Avoid double-free if malloc fails in inputPush It's the caller's responsibility to free the input stream if this function fails. --- parser.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/parser.c b/parser.c index 280a815d..0464a302 100644 --- a/parser.c +++ b/parser.c @@ -1752,9 +1752,7 @@ inputPush(xmlParserCtxtPtr ctxt, xmlParserInputPtr value) sizeof(ctxt->inputTab[0])); if (ctxt->inputTab == NULL) { xmlErrMemory(ctxt, NULL); - xmlFreeInputStream(value); ctxt->inputMax /= 2; - value = NULL; return (-1); } } -- 2.27.0
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
.