]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/lizard-safe.c
Growing arrays: Fixed test cases
[libucw.git] / ucw / lizard-safe.c
index 96eeb4385cde6df9cca0de3b8b513bbb7e57a15f..06302619587c9bf3c2910747ec9011a3dda645ba 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "ucw/lib.h"
 #include "ucw/threads.h"
+#include "ucw/sighandler.h"
 #include "ucw/lizard.h"
 
 #include <sys/mman.h>
@@ -79,7 +80,7 @@ lizard_decompress_safe(const byte *in, struct lizard_buffer *buf, uns expected_l
   uns lock_offset = ALIGN_TO(expected_length + 3, CPU_PAGE_SIZE);      // +3 due to the unaligned access
   if (lock_offset > buf->len)
     lizard_realloc(buf, lock_offset);
-  volatile sh_sighandler_t old_handler = set_signal_handler(SIGSEGV, sigsegv_handler);
+  volatile ucw_sighandler_t old_handler = set_signal_handler(SIGSEGV, sigsegv_handler);
   byte *ptr;
   if (!setjmp(safe_decompress_jump))
   {