Very subtle sign/zero-extension bug occuring on 64bit.
authorMichael Matz <matz@suse.de>
Thu, 17 Jan 2008 16:28:52 +0000 (16:28 +0000)
committerMichael Matz <matz@suse.de>
Thu, 17 Jan 2008 16:28:52 +0000 (16:28 +0000)
src/fastlz.c

index ece6da9..02049c3 100644 (file)
@@ -332,7 +332,7 @@ unchecked_decompress_buf (const unsigned char *in, unsigned int in_len,
          better optimizable.  */
       do
        {
-         *out = out[-o];
+         *out = *(out - o);
          out++;
        }
       while (--first);