Changeset 37701 in project


Ignore:
Timestamp:
06/13/19 21:16:37 (2 months ago)
Author:
sjamaan
Message:

simple-sha1 (C4): Fix overflow issue when hashing large files or blobs (thanks to Vasilij Schneidermann)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/simple-sha1/trunk/sha1-base.c

    r22777 r37701  
    135135    j = context->count[0];
    136136    if ((context->count[0] += len << 3) < j)
    137         context->count[1] += (len>>29)+1;
     137        context->count[1]++;
     138    context->count[1] += len >> 29;
    138139    j = (j >> 3) & 63;
    139140    if ((j + len) > 63) {
Note: See TracChangeset for help on using the changeset viewer.