]> mj.ucw.cz Git - libucw.git/blobdiff - lib/lizard-safe.c
oops, one missing volatile :-)
[libucw.git] / lib / lizard-safe.c
index fb45f8bf17f8a6d83b694485f8ed10dc80f009fd..fc4b228f22951f6bdf04d9517b09d31643c4ef15 100644 (file)
@@ -55,7 +55,7 @@ lizard_decompress_safe(byte *in, struct lizard_buffer *buf, uns expected_length)
    * is caught in the case of buffer-overflow.  The function is not re-entrant
    * because of a static longjmp handler.  */
 {
-  uns lock_offset = ALIGN(expected_length, PAGE_SIZE);
+  volatile uns lock_offset = ALIGN(expected_length, PAGE_SIZE);
   if (lock_offset + PAGE_SIZE > buf->len)
   {
     errno = EFBIG;