Changeset 14618


Ignore:
Timestamp:
Dec 13, 2015, 1:29:39 AM (5 years ago)
Author:
mikedld
Message:

Reserve a few more bytes for base64 operations to prevent heap corruption

File:
1 edited

Legend:

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

    r14429 r14618  
    209209#endif
    210210
    211           ret = tr_new (char, ret_length + 1);
     211          ret = tr_new (char, ret_length + 8);
    212212
    213213          base64_init_encodestate (&state);
     
    257257          base64_decodestate state;
    258258
    259           ret = tr_new (char, ret_length + 1);
     259          ret = tr_new (char, ret_length + 8);
    260260
    261261          base64_init_decodestate (&state);
Note: See TracChangeset for help on using the changeset viewer.