Go to file
Doug Hogan 41846c74f1 Modify sk_find() so it returns 1 on success and 0 otherwise.
The 2 arg OpenSSL sk_find() returned -1 on error and >= 0 on
success.  BoringSSL's 3 arg sk_find() returns -1 if the sk argument
is NULL, 0 if the item is not found, and 1 if found.

In practice, all callers of the sk_find() macros in BoringSSL only
check for zero/non-zero.  If sk is ever NULL, it looks like most
callers are going to use uninitialized data as the index because
the return value check is insufficient.

Change-Id: I640089a0f4044aaa8d50178b2aecd9c3c1fe2f9c
Reviewed-on: https://boringssl-review.googlesource.com/4500
Reviewed-by: Adam Langley <agl@google.com>
2015-04-24 23:19:56 +00:00
crypto Modify sk_find() so it returns 1 on success and 0 otherwise. 2015-04-24 23:19:56 +00:00
decrepit Eliminate unnecessary includes from low-level crypto modules. 2015-04-13 20:49:18 +00:00
doc Inital import. 2014-06-20 13:17:32 -07:00
include/openssl Fix typo in comment for SSL_MODE_SEND_FALLBACK_SCSV. 2015-04-23 17:28:27 -07:00
ssl Revert "Temporary introduce a memory leak in ssl_test" 2015-04-21 06:32:24 -04:00
tool Fix standalone build on Mac. 2015-04-20 16:50:18 +00:00
util Add a tool to download Chromium's prebuilt clang. 2015-04-20 18:56:03 +00:00
.clang-format Inital import. 2014-06-20 13:17:32 -07:00
.gitignore Add generated documentation to .gitignore 2015-01-26 18:37:55 +00:00
BUILDING Generate error data at build time. 2015-03-06 18:59:25 +00:00
CMakeLists.txt Enable MSVC warning C4701, use of potentially uninitialized variable. 2015-04-13 20:32:26 +00:00
codereview.settings Add a codereview.settings file. 2014-11-18 22:21:33 +00:00
STYLE Style guide tweaks. 2015-02-19 18:33:20 +00:00