~ubuntu-branches/ubuntu/trusty/rhash/trusty

« back to all changes in this revision

Viewing changes to librhash/crc32.c

  • Committer: Bazaar Package Importer
  • Author(s): Aleksey Kravchenko
  • Date: 2011-08-14 20:35:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110814203500-rvnovipwcpqkm91u
Tags: 1.2.7-1
* New upstream release version 1.2.7
 - Fixes security issue (Closes: #632280)
 - changed author/mantainer name to the way I prefer s/Alexey S/Aleksey/
 - simplified desriptions of binary packages
 - wriiten rules in more now standard way, using CFLAGS/LDFLAGS
 - reworded README.Debian a bit
 - aplied patch from upstream to fix possible segfault
 - aplied patch from upstream to fix glibc runtime warning
 - aplied patch from upstream to repair -openssl option handling

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        const unsigned char *e;
102
102
 
103
103
        /* process not aligned message head */
104
 
        for(; (3 & (msg - (unsigned char*)0)) && size>0; msg++, size--) 
 
104
        for(; (3 & (msg - (unsigned char*)0)) && size>0; msg++, size--)
105
105
                crc = rhash_crc32_table[(crc ^ *msg) & 0xFF] ^ (crc >> 8);
106
106
 
107
107
        /* fast CRC32 calculation of a DWORD-aligned message */