1 /* dlclose_leak_so.c */
5 /** Makes a jump based on an uninitialized variable in order to make sure
6 * errors reported while the dlopen'ed object is loaded work. */
7 int jmp_on_uninit(void) {
9 __asm__
__volatile("":::"cc","memory");
17 /** Leak 1 byte of memory. This is to test the stack check reported after the
18 * object has been dlclose'd. */
19 char* alloc_1_byte(void) {
20 return (char*)malloc(1);