From 9415a14acf8ea9e84118f1b1ab1f0d97a3de1d19 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Wed, 26 Oct 2016 09:58:16 -0400 Subject: [PATCH] Fix SSL_CTX_set1_curves fuzzer. SSL_CTX_set1_curves was being called with the size of the input data in bytes rather than in ints. BUG=chromium:659361 Change-Id: I90da1c6d60e92423c6b7d9efd744ae70ff589172 Reviewed-on: https://boringssl-review.googlesource.com/11840 Commit-Queue: David Benjamin Reviewed-by: Adam Langley --- fuzz/ssl_ctx_api.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuzz/ssl_ctx_api.cc b/fuzz/ssl_ctx_api.cc index 4af80c27..a66b1a84 100644 --- a/fuzz/ssl_ctx_api.cc +++ b/fuzz/ssl_ctx_api.cc @@ -399,7 +399,7 @@ static const std::function kAPIs[] = { return; } SSL_CTX_set1_curves(ctx, reinterpret_cast(curves.data()), - curves.size()); + curves.size() / sizeof(int)); }, [](SSL_CTX *ctx, CBS *cbs) { std::string curves;