X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Flizard-safe.c;h=fc4b228f22951f6bdf04d9517b09d31643c4ef15;hb=f830d022a4058bf30fc414c82fc5cff3f0484e48;hp=fb45f8bf17f8a6d83b694485f8ed10dc80f009fd;hpb=159f3fd2f4b044788fc71208855ed1a846b20949;p=libucw.git diff --git a/lib/lizard-safe.c b/lib/lizard-safe.c index fb45f8bf..fc4b228f 100644 --- a/lib/lizard-safe.c +++ b/lib/lizard-safe.c @@ -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;