Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2015-11-17 01:18:47 +0300
committerAdam Langley <agl@google.com>2015-11-17 01:25:59 +0300
commitf9c77dedfa8dc7f2f06ffc955959ee2e2a5d1a77 (patch)
tree8fd32ee082c5027f73afa35e75bfa5bb6f76fbea /crypto/bytestring
parenta33915d69045dd17ce50749e011dfead2fa969ab (diff)
Drop CBB allocation failure test.
To no great surprise, ASAN didn't like this test and I suspect that Chromium, with its crashing allocator, won't like it either. Oh well. Change-Id: I235dbb965dbba186f8f37d7df45f8eac9addc7eb Reviewed-on: https://boringssl-review.googlesource.com/6496 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/bytestring')
-rw-r--r--crypto/bytestring/bytestring_test.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/crypto/bytestring/bytestring_test.cc b/crypto/bytestring/bytestring_test.cc
index 4c2add6b..f25c1862 100644
--- a/crypto/bytestring/bytestring_test.cc
+++ b/crypto/bytestring/bytestring_test.cc
@@ -316,22 +316,6 @@ static bool TestCBBFixed() {
return true;
}
-static bool TestCBBAllocFailure() {
- CBB cbb;
- memset(&cbb, 0x42, sizeof(cbb));
-
- if (CBB_init(&cbb, (size_t)-1)) {
- fprintf(stderr, "Excessive allocation successful!\n");
- CBB_cleanup(&cbb);
- return false;
- }
-
- /* |CBB_init| should have cleared |cbb| before failing therefore this should
- * not crash. */
- CBB_cleanup(&cbb);
- return true;
-}
-
static bool TestCBBFinishChild() {
CBB cbb, child;
uint8_t *out_buf;
@@ -732,7 +716,6 @@ int main(void) {
!TestGetASN1() ||
!TestCBBBasic() ||
!TestCBBFixed() ||
- !TestCBBAllocFailure() ||
!TestCBBFinishChild() ||
!TestCBBMisuse() ||
!TestCBBPrefixed() ||