Skip to content

Instantly share code, notes, and snippets.

View langston-barrett's full-sized avatar

Langston Barrett langston-barrett

View GitHub Profile
@langston-barrett
langston-barrett / test.sql
Created March 6, 2023 22:55
DuckDB segfault
BEGIN;
CREATE SEQUENCE path_seq;
CREATE TABLE path (
id INTEGER PRIMARY KEY DEFAULT NEXTVAL('path_seq'),
it INTEGER,
x0 TEXT NOT NULL,
x1 TEXT NOT NULL
);
CREATE INDEX path_delta_idx ON path (it);
CREATE INDEX path0_idx ON path (x0);
extern crate alloc as b;
mod foo {
mod bar {
pub(in b::string::String::newy) extern crate alloc as e;
}
}
@langston-barrett
langston-barrett / zlib-CVE-2022-37434.c
Created March 31, 2026 19:07
zlib CVE-2022-37434
// Standalone version of zlib CVE-2022-37434, see "BUG" below.
//
// musl-gcc -nostdlib -fno-stack-protector -static -O0 zlib-cve-2022-37434.c
//
// Original zlib license text follows:
//
// Copyright notice:
//
// (C) 1995-2026 Jean-loup Gailly and Mark Adler
//