Commit 1f6372b
committed
Check ASN1_STRING_to_UTF8() failure
This function returns a negative error code on error.
When it does so, the `value_str` pointer will remain uninitialized and
cause a crash later on when it is freed by OPENSSL_free().
Even if it wouldn't crash there, it still fails to signal the error and
an empty string may be propagated to the callers.1 parent 88555cc commit 1f6372b
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4847 | 4847 | | |
4848 | 4848 | | |
4849 | 4849 | | |
| 4850 | + | |
| 4851 | + | |
| 4852 | + | |
4850 | 4853 | | |
4851 | 4854 | | |
4852 | 4855 | | |
| |||
0 commit comments