Fix ssl_certificate_fuzzer
Bug: webrtc:10395 Change-Id: Iba79f257c427545c36052e74296d3c07a166ee7d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/225540 Reviewed-by: Sam Zackrisson <saza@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34446}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
d6afbead2d
commit
e09a174746
@ -622,8 +622,12 @@ webrtc_fuzzer_test("rtp_header_parser_fuzzer") {
|
||||
}
|
||||
|
||||
webrtc_fuzzer_test("ssl_certificate_fuzzer") {
|
||||
sources = [ "rtp_header_parser_fuzzer.cc" ]
|
||||
deps = [ "../:rtp_test_utils" ]
|
||||
sources = [ "ssl_certificate_fuzzer.cc" ]
|
||||
deps = [
|
||||
"../:rtp_test_utils",
|
||||
"../../rtc_base",
|
||||
"../../rtc_base:stringutils",
|
||||
]
|
||||
}
|
||||
|
||||
webrtc_fuzzer_test("vp8_replay_fuzzer") {
|
||||
|
@ -13,6 +13,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "rtc_base/message_digest.h"
|
||||
#include "rtc_base/ssl_certificate.h"
|
||||
#include "rtc_base/string_encode.h"
|
||||
|
||||
@ -34,7 +35,7 @@ void FuzzOneInput(const uint8_t* data, size_t size) {
|
||||
cert->CertificateExpirationTime();
|
||||
|
||||
std::string algorithm;
|
||||
cert->GetSignatureDigestAlgorithm(algorithm);
|
||||
cert->GetSignatureDigestAlgorithm(&algorithm);
|
||||
|
||||
unsigned char digest[rtc::MessageDigest::kMaxSize];
|
||||
size_t digest_len;
|
||||
|
Reference in New Issue
Block a user