Skip to content

Instantly share code, notes, and snippets.

View retep998's full-sized avatar
🐇
Very fluffy

Peter Atashian retep998

🐇
Very fluffy
  • Massachusetts, USA
View GitHub Profile
@retep998
retep998 / Cargo.toml
Last active May 31, 2017 09:58
winapi-rs invalid handle in union
[package]
name = "handletest"
version = "0.1.0"
authors = ["Peter Atashian <retep998@gmail.com>"]
[dependencies.winapi]
git = "https://github.com/retep998/winapi-rs"
branch = "dev"
features = ["minwinbase", "minwindef", "processthreadsapi", "winbase", "winnt"]
@retep998
retep998 / foo.c
Created March 31, 2016 09:51 — forked from sargun/foo.c
int pants() {
char *foo = crud();
printf("Crud: %s\n", foo);
rust_free(foo);
}
@retep998
retep998 / gcc.s
Last active January 3, 2016 22:29 — forked from kvanbere/in.c
gcc vs msvc asm
0x00000001004010e0 <+0>: cmp rcx,0xfe0
0x00000001004010e7 <+7>: ja 0x10040113f <gc_malloc+95>
0x00000001004010e9 <+9>: mov rdx,QWORD PTR [rip+0x4f28] # 0x406018
0x00000001004010f0 <+16>: xor r11d,r11d
0x00000001004010f3 <+19>: mov r10d,0x1
0x00000001004010f9 <+25>: mov r8,QWORD PTR [rdx+0x18]
0x00000001004010fd <+29>: lea r9,[rcx+r8*1]
0x0000000100401101 <+33>: cmp r9,0xfe0
0x0000000100401108 <+40>: ja 0x100401134 <gc_malloc+84>
0x000000010040110a <+42>: mov rax,r8