Skip to content

Instantly share code, notes, and snippets.

View NachoSoto's full-sized avatar

NachoSoto NachoSoto

View GitHub Profile
@NachoSoto
NachoSoto / compilation.txt
Last active December 20, 2015 17:39
Passing garbage as C++ arguments
$ clang++ -Wall -Werror -framework Foundation -std=c++11 -stdlib=libc++ garbage.mm -o test && ./test && echo $?
0 // MyClass didn't get initialized?
0 // method calls don't fail either
0 // exit code. No Crash?
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/4222316/hack.sh | sh
#