Skip to content

Commit efec066

Browse files
committed
fix stack overflow detection
1 parent f01cfa4 commit efec066

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ main_startup(int argc, char **argv)
175175
{
176176
main_argv0 = argv[0];
177177

178+
// try to spot stack overflow with this
179+
main_c_stack_base = &argc;
180+
178181
#ifdef DEBUG
179182
vips_leak_set(TRUE);
180183
#endif /*DEBUG*/

0 commit comments

Comments
 (0)