boringssl/crypto/bio
Adam Langley afdbb62de2 Ensure that BIO_[w]pending isn't confused about negative numbers.
It's possible that a BIO implementation could return a negative number
(say -1) for BIO_CTRL_PENDING or BIO_CTRL_WPENDING. Assert that this
doesn't happen and map it to zero if it happens anyway in NDEBUG builds.

Change-Id: Ie01214e80ff19acc1c7681a1125bbbf2038679c3
Reviewed-on: https://boringssl-review.googlesource.com/11700
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2016-10-21 21:08:55 +00:00
..
bio_mem.c BIO_new_mem_buf should take const void * 2016-02-24 19:14:19 +00:00
bio_test.cc Replace Scoped* heap types with bssl::UniquePtr. 2016-09-01 22:22:54 +00:00
bio.c Ensure that BIO_[w]pending isn't confused about negative numbers. 2016-10-21 21:08:55 +00:00
buffer.c Don't cast |OPENSSL_malloc|/|OPENSSL_realloc| result. 2016-02-11 22:07:56 +00:00
CMakeLists.txt
connect.c Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
fd.c Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
file.c Remove CP_UTF8 code for Windows filenames. 2016-02-22 17:19:33 +00:00
hexdump.c Use C99 for size_t loops. 2016-09-12 19:44:24 +00:00
internal.h Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
pair.c Make local functions static. 2016-03-20 16:37:58 +00:00
printf.c
socket_helper.c Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
socket.c Place comment(lib, *) pragmas under OPENSSL_MSVC_PRAGMA. 2016-10-10 19:25:55 +00:00