Changeset 14357


Ignore:
Timestamp:
Dec 4, 2014, 6:20:46 PM (8 years ago)
Author:
mikedld
Message:

#4400, #5462: Do not assert on input to SHA1 or RC4 if input length is 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/crypto-utils-openssl.c

    r14356 r14357  
    103103{
    104104  assert (handle != NULL);
     105
     106  if (data_length == 0)
     107    return true;
     108
    105109  assert (data != NULL);
    106110
     
    176180
    177181  assert (handle != NULL);
     182
     183  if (length == 0)
     184    return;
     185
    178186  assert (input != NULL);
    179187  assert (output != NULL);
Note: See TracChangeset for help on using the changeset viewer.