This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tracing Go VM: | |
[1] 0 : JUMPDEST | |
Stack: [] | |
Gas: 99999 | |
[2] 1 : PC | |
Stack: [1] | |
Gas: 99997 | |
[3] 2 : ADDRESS | |
Stack: [1 341] | |
Gas: 99995 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am guidovranken on github. | |
* I am guidovranken (https://keybase.io/guidovranken) on keybase. | |
* I have a public key whose fingerprint is 9A9E DC20 C7C9 E021 F3ED 4CD9 734C 1576 6744 7B97 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 523fa8f085346b19a46da240309716057cb24340 Mon Sep 17 00:00:00 2001 | |
From: Guido Vranken <guidovranken@gmail.com> | |
Date: Mon, 14 May 2018 23:04:40 +0200 | |
Subject: [PATCH 1/1] SSL server: send excessively large DH prime | |
--- | |
ssl/statem/statem_srvr.c | 2053 +++++++++++++++++++++++++++++++++++++++++++++- | |
1 file changed, 2033 insertions(+), 20 deletions(-) | |
diff --git a/ssl/statem/statem_srvr.c b/ssl/statem/statem_srvr.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/contrib/bsnmp/lib/asn1.c b/contrib/bsnmp/lib/asn1.c | |
index 03b5662..57f9380 100644 | |
--- a/contrib/bsnmp/lib/asn1.c | |
+++ b/contrib/bsnmp/lib/asn1.c | |
@@ -100,6 +100,11 @@ asn_get_header(struct asn_buf *b, u_char *type, asn_len_t *len) | |
*len = *b->asn_cptr++; | |
b->asn_len--; | |
} | |
+ | |
+ if ( *len > b->asn_len ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script> | |
function getKeyMaterial() { | |
let enc = new TextEncoder(); | |
return window.crypto.subtle.importKey( | |
"raw", | |
enc.encode("PW"), | |
"HKDF", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <stdio.h> | |
static void | |
xcp(unsigned long *dst, const unsigned long *src, int top) | |
{ | |
for (int i = 0; i < top; i++) { | |
dst[i] = src[i]; | |
printf("%zu\n", src[i]); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
export CFLAGS="-fsanitize=object-size -fno-sanitize-recover=object-size" | |
export CC=clang | |
git clone --depth 1 https://github.com/libressl-portable/portable libressl | |
cd libressl | |
./update.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export CC="clang" | |
export CXX="clang++" | |
export CFLAGS="-fsanitize=fuzzer-no-link -g -O3 -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" | |
export CXXFLAGS="-fsanitize=fuzzer-no-link -g -O3 -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" | |
# Alternatively: | |
#export CFLAGS="-fsanitize=fuzzer-no-link -g -O3 -fsanitize=address -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define CF_CHECK_EQ(expr, res) if ( (expr) != (res) ) { goto end; } | |
#define CF_CHECK_NE(expr, res) if ( (expr) == (res) ) { goto end; } | |
void SymCryptFatal(UINT32 fatalCode) { | |
(void)fatalCode; | |
abort(); | |
} | |
void SymCryptInjectError( PBYTE pbData, SIZE_T cbData ) { | |
(void)pbData; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Compile: | |
export CC=clang | |
git clone --depth 1 https://github.com/microsoft/SymCrypt.git | |
cd SymCrypt/ | |
# Unittests don't build with clang and are not needed anyway | |
sed -i "s/^add_subdirectory(unittest)$//g" CMakeLists.txt | |
mkdir b/ | |
cd b/ |
OlderNewer