diff options
author | ejanchivdorj <ejanchivdorj@tableau.com> | 2021-05-24 23:38:17 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-05-25 11:22:09 +0200 |
commit | a63dae5d078b24dc441e421a37fa7daf09fc4768 (patch) | |
tree | 8c84b13ed586c601471c54c47cdbadf6bf1edff0 /m4 | |
parent | 643ec296456ba98c536857fce3ecfd021d44d913 (diff) | |
download | curl-a63dae5d078b24dc441e421a37fa7daf09fc4768.tar.gz |
sectransp: fix EXC_BAD_ACCESS caused by uninitialized buffer
When the SecCertificateCopyCommonName function fails, it leaves
common_name in a invalid state so CFStringCompare uses the invalid
result, causing EXC_BAD_ACCESS.
The fix is to check the return value of the function before using the
name.
Closes #7126
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions