Skip to content

Instantly share code, notes, and snippets.

@AstraLuma
Last active March 29, 2016 22:13
Show Gist options
  • Select an option

  • Save AstraLuma/f57a31f94550956d0ef3ec81bad3b9ba to your computer and use it in GitHub Desktop.

Select an option

Save AstraLuma/f57a31f94550956d0ef3ec81bad3b9ba to your computer and use it in GitHub Desktop.
Vala double free bug
Bytes get_bytes() {
return new Bytes({0,1,2,3});
}
void double_free() {
string vtxshader = (string)get_bytes();
string frgshader = (string)get_bytes();
}
public static int main (string[] args) {
double_free();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment