Skip to content

Instantly share code, notes, and snippets.

Alex Gaynor alex

Block or report user

Report or block alex

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gm.diff
diff -r 45d2f234c8a1 fuzzing/oss-fuzz-build.sh
--- a/fuzzing/oss-fuzz-build.sh Wed Sep 18 08:37:23 2019 -0500
+++ b/fuzzing/oss-fuzz-build.sh Thu Sep 19 19:40:40 2019 -0400
@@ -100,7 +100,7 @@
$CXX $CXXFLAGS -std=c++11 -I "$WORK/include/GraphicsMagick" \
"$f" -o "$OUT/${fuzzer}_fuzzer" \
- -lFuzzingEngine "$WORK/lib/libGraphicsMagick++.a" \
+ $LIB_FUZZING_ENGINE "$WORK/lib/libGraphicsMagick++.a" \
"$WORK/lib/libGraphicsMagick.a" $MAGICK_LIBS
View bench_test.go
package foo
import (
"bytes"
"testing"
)
var Data1 = bytes.Repeat([]byte("a"), 1)
var Data10 = bytes.Repeat([]byte("a"), 10)
var Data100 = bytes.Repeat([]byte("a"), 100)
View gist:f7893e0e44d8a22cdc7b2609fb4d25b7
2019/08/12 11:05:13 [INFO] Terraform version: 0.12.6
2019/08/12 11:05:13 [INFO] Go runtime version: go1.12.4
2019/08/12 11:05:13 [INFO] CLI args: []string{"/tmp/x/terraform", "validate"}
2019/08/12 11:05:13 [DEBUG] Attempting to open CLI config file: /home/alex/.terraformrc
2019/08/12 11:05:13 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/08/12 11:05:13 [INFO] CLI command args: []string{"validate"}
2019/08/12 11:05:13 [DEBUG] checking for provider in "."
2019/08/12 11:05:13 [DEBUG] checking for provider in "/tmp/x"
2019/08/12 11:05:13 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
2019/08/12 11:05:13 [DEBUG] found provider "terraform-provider-aws_v2.23.0_x4"
View slides-link
View t.cc
#include <cstdint>
#include "js/Initialization.h"
#include "jsapi.h"
extern "C" char *grammarfuzz_js_generate(const uint8_t *, size_t);
extern "C" void grammarfuzz_js_free(char *);
static JSClassOps global_ops = {nullptr,
nullptr,
View download-slack-emoji.py
from __future__ import print_function
import os
import sys
import zipfile
import requests
def main(argv):
View gist:4a7558a26df572cfbf4bbf1115f2518b
error: failed to run custom build command for `js v0.1.4 (file:///p/mozilla-central/js/rust)`
process didn't exit successfully: `/p/grammarfuzz-hacks/fuzz/target/debug/build/js-d771f9f2d6ad4f99/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=etc/wrapper.hpp
running: "cmake" "/p/mozilla-central/js/rust/." "-DCMAKE_INSTALL_PREFIX=/p/grammarfuzz-hacks/fuzz/target/x86_64-unknown-linux-gnu/debug/build/js-82e5c2af05de8ff1/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_BUILD_TYPE=Debug"
--- stderr
ERROR:bindgen::ir::item: Unhandled cursor kind 400: Cursor( kind: UnexposedAttr, loc: /usr/bin/../lib/gcc/x86_64-linux-gnu/6.4.0/../../../../include/x86_64-linux-gnu/c++/6.4.0/bits/c++config.h:223:43, usr: None)
ERROR:bindgen::ir::item: Unhandled cursor kind 400: Cursor( kind: UnexposedAttr, loc: /usr/bin/../lib/gcc/x86_64-linux-gnu
View t.rs
// ...
serve_https(addr.parse().unwrap(), tls_config, 16, move |handle,
tls_session| {
let http_client = new_http_client(handle);
HttpHandler {
templates: Arc::clone(&templates),
http_client: Arc::new(http_client),
logs: Arc::clone(&logs),
handle: handle.clone(),
View gist:aa8c31c05787c43936f30fbff1a406cf
Hello all,
I'd like to report the following BR violations. These were all found in OCSP
responder certificates (thanks to Paul Kehrer for providing the raw data to
enable this).
While there were many violations, I'm highlighting just a few. Excluded
examples include: 'Illegal KeyUsage for RSA key' and my personal favorite,
incorrect encoding of OCSP NoCheck.
View gist:264328f1a66a709bf4ceb0cd890a91ec
bp GDI32!NtGdiAbortDoc ".echo 'Found a win32k syscall';k;g"
bp GDI32!NtGdiAbortPath ".echo 'Found a win32k syscall';k;g"
bp GDI32!NtGdiAddEmbFontToDC ".echo 'Found a win32k syscall';k;g"
bp GDI32!NtGdiAddFontMemResourceEx ".echo 'Found a win32k syscall';k;g"
bp GDI32!NtGdiAddFontResourceW ".echo 'Found a win32k syscall';k;g"
bp GDI32!NtGdiAddRemoteFontToDC ".echo 'Found a win32k syscall';k;g"
bp GDI32!NtGdiAddRemoteMMInstanceToDC ".echo 'Found a win32k syscall';k;g"
bp GDI32!NtGdiAlphaBlend ".echo 'Found a win32k syscall';k;g"
bp GDI32!NtGdiAngleArc ".echo 'Found a win32k syscall';k;g"
bp GDI32!NtGdiAnyLinkedFonts ".echo 'Found a win32k syscall';k;g"
You can’t perform that action at this time.