X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Flizard-safe.c;h=42d73820ab6da3e981f864cd1b5ff42ceb82fb92;hb=7cc9c555b0ef228f93a9f06b7c4b126b05688f79;hp=06302619587c9bf3c2910747ec9011a3dda645ba;hpb=04aeb72dc19dcaaa3012c691407c8016c3842ed5;p=libucw.git diff --git a/ucw/lizard-safe.c b/ucw/lizard-safe.c index 06302619..42d73820 100644 --- a/ucw/lizard-safe.c +++ b/ucw/lizard-safe.c @@ -7,10 +7,10 @@ * of the GNU Lesser General Public License. */ -#include "ucw/lib.h" -#include "ucw/threads.h" -#include "ucw/sighandler.h" -#include "ucw/lizard.h" +#include +#include +#include +#include #include #include @@ -71,11 +71,6 @@ sigsegv_handler(int signal UNUSED) byte * lizard_decompress_safe(const byte *in, struct lizard_buffer *buf, uns expected_length) - /* Decompresses in into buf, sets *ptr to the data, and returns the - * uncompressed length. If an error has occured, -1 is returned and errno is - * set. The buffer buf is automatically reallocated. SIGSEGV is caught in - * case of buffer-overflow. The function is not re-entrant because of a - * static longjmp handler. */ { uns lock_offset = ALIGN_TO(expected_length + 3, CPU_PAGE_SIZE); // +3 due to the unaligned access if (lock_offset > buf->len)