| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3ba4124 commit a9c0689
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -741,9 +741,10 @@ static bool PrintGeneralName(const BIOPointer& out, const GENERAL_NAME* gen) { | |||
| 741 | 741 | return false; | |
| 742 | 742 | } | |
| 743 | 743 | char* oline = nullptr; | |
| 744 | - size_t n_bytes = BIO_get_mem_data(tmp.get(), &oline); | ||
| 744 | + long n_bytes = BIO_get_mem_data(tmp.get(), &oline); // NOLINT(runtime/int) | ||
| 745 | + CHECK_GE(n_bytes, 0); | ||
| 745 | 746 | CHECK_IMPLIES(n_bytes != 0, oline != nullptr); | |
| 746 | - PrintAltName(out, oline, n_bytes, true, nullptr); | ||
| 747 | + PrintAltName(out, oline, static_cast<size_t>(n_bytes), true, nullptr); | ||
| 747 | 748 | } else if (gen->type == GEN_IPADD) { | |
| 748 | 749 | BIO_printf(out.get(), "IP Address:"); | |
| 749 | 750 | const ASN1_OCTET_STRING* ip = gen->d.ip; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments