Skip to content

Commit

Permalink
Call inflateInit
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Feb 22, 2025
1 parent 1a38c92 commit 753d484
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/_imaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ setup_module(PyObject *m) {
z_stream.zfree = (free_func)NULL;
z_stream.opaque = (voidpf)NULL;

printf("Do not segfault\n");
printf("Before segfault\n");
inflateInit(&z_stream);
printf("After segfault\n");

return 0;
}
Expand Down

0 comments on commit 753d484

Please sign in to comment.