Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some out of memory error cases (found by Coverity) that could cause multiple frees or freeing of invalid pointers. In krb5_flagnum_to_string(), don't assume that asprintf() stores a null pointer on failure (it does in BSD but not in glibc). In krb5_flags_to_strings(), free the correct pointer in the cleanup loop in on error. ticket: 8215
- Loading branch information
Showing
2 changed files
with
23 additions
and
8 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