forked from libical/libical
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
icalcomponent.c: do not dereference NULL when comparing components
The icalcomponent_normalize function sorts components by comparing their mandatory property values. This causes it to dereference a NULL pointer if one of the compared components erroneously is missing such a property. This patch fixes that by checking for the presence of mandatory properties before comparison, otherwise sorting components having a property before ones that don't.
- Loading branch information
Showing
2 changed files
with
188 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters