-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cron: handle ENOMEM without asserting
Problem: cronodate_create() calls xzmalloc() which asserts on ENOMEM, but cronodate is used in a broker module, so asserting is inappropriate. Have cronodate_create() call cmalloc() and return NULL on failure. Ensure the return value is checked all along the call path from the cron broker module: cron_entry_create() -> cron_datetime_create() -> datetime_entry_from_json() -> datetime_entry_create() -> cronodate_create()
- Loading branch information
Showing
3 changed files
with
12 additions
and
5 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
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