]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/lizard-safe.c
Packages: Fixed installation of obsolete ucw-daemon-helper.
[libucw.git] / ucw / lizard-safe.c
index 06302619587c9bf3c2910747ec9011a3dda645ba..42d73820ab6da3e981f864cd1b5ff42ceb82fb92 100644 (file)
@@ -7,10 +7,10 @@
  *     of the GNU Lesser General Public License.
  */
 
  *     of the GNU Lesser General Public License.
  */
 
-#include "ucw/lib.h"
-#include "ucw/threads.h"
-#include "ucw/sighandler.h"
-#include "ucw/lizard.h"
+#include <ucw/lib.h>
+#include <ucw/threads.h>
+#include <ucw/sighandler.h>
+#include <ucw/lizard.h>
 
 #include <sys/mman.h>
 #include <fcntl.h>
 
 #include <sys/mman.h>
 #include <fcntl.h>
@@ -71,11 +71,6 @@ sigsegv_handler(int signal UNUSED)
 
 byte *
 lizard_decompress_safe(const byte *in, struct lizard_buffer *buf, uns expected_length)
 
 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)
 {
   uns lock_offset = ALIGN_TO(expected_length + 3, CPU_PAGE_SIZE);      // +3 due to the unaligned access
   if (lock_offset > buf->len)