Projects
openEuler:24.03:SP1:Everything
libical
_service:tar_scm:backport-icalcomponent.c-avoid...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-icalcomponent.c-avoid-crashing-in-icalcomponent_normalize.patch of Package libical
From d8345bffcbf5a7e550388c7354818caed4a1e8ad Mon Sep 17 00:00:00 2001 From: Allen Winter <winter@kde.org> Date: Sun, 2 Jun 2024 10:35:02 -0400 Subject: [PATCH] icalcomponent.c - avoid crashing in icalcomponent_normalize Avoid a crash in icalcomponent_normalize() by returning immediately if the specified component in NULL. Should fix fuzzer issues 52787 and 56539. --- src/libical/icalcomponent.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libical/icalcomponent.c b/src/libical/icalcomponent.c index 8fc61a330..be524767d 100644 --- a/src/libical/icalcomponent.c +++ b/src/libical/icalcomponent.c @@ -2628,6 +2628,10 @@ void icalcomponent_normalize(icalcomponent *comp) icalproperty *prop; icalcomponent *sub; + icalerror_check_arg(comp != 0, "comp"); + if (!comp) + return; + /* Normalize properties into sorted list */ while ((prop = pvl_pop(comp->properties)) != 0) { int nparams, remove = 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
.
浙ICP备2022010568号-2