| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent eb5d66e commit 109566a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6908,6 +6908,9 @@ std::pair<std::string, std::string> X509Name::Iterator::operator*() const { | |||
| 6908 | 6908 | ||
| 6909 | 6909 | unsigned char* value_str; | |
| 6910 | 6910 | int value_str_size = ASN1_STRING_to_UTF8(&value_str, value); | |
| 6911 | + if (value_str_size < 0) [[unlikely]] { | ||
| 6912 | + return {{}, {}}; | ||
| 6913 | + } | ||
| 6911 | 6914 | ||
| 6912 | 6915 | std::string out(reinterpret_cast<const char*>(value_str), value_str_size); | |
| 6913 | 6916 | OPENSSL_free(value_str); // free after copy | |
| Back | FazBrowse Home | New Git URL |
0 commit comments