367115b056
The size of an int is 4, not 2. To avoid worrying about this, add a GetVector counterpart to GetString that handles all this. Apply this uniformly to avoid all the pointer casts. This is less important for vector<uint8_t>, but even then we'll now notice a 1-byte OOB read since std::string is NUL-terminated. Also it's shorter. Change-Id: Ie96591cb8d8d52742f5fd30d70b6af0511109585 Reviewed-on: https://boringssl-review.googlesource.com/30864 Reviewed-by: Adam Langley <agl@google.com> |
||
---|---|---|
.. | ||
bn_div_corpus | ||
bn_mod_exp_corpus | ||
cert_corpus | ||
client_corpus | ||
client_corpus_no_fuzzer_mode | ||
dtls_client_corpus | ||
dtls_server_corpus | ||
pkcs8_corpus | ||
pkcs12_corpus | ||
privkey_corpus | ||
read_pem_corpus | ||
server_corpus | ||
server_corpus_no_fuzzer_mode | ||
session_corpus | ||
spki_corpus | ||
ssl_ctx_api_corpus | ||
bn_div.cc | ||
bn_mod_exp.cc | ||
cert.cc | ||
client.cc | ||
CMakeLists.txt | ||
dtls_client.cc | ||
dtls_server.cc | ||
minimise_corpuses.sh | ||
pkcs8.cc | ||
pkcs12.cc | ||
privkey.cc | ||
read_pem.cc | ||
refresh_ssl_corpora.sh | ||
server.cc | ||
session.cc | ||
spki.cc | ||
ssl_ctx_api.cc |