Changeset 12350


Ignore:
Timestamp:
Apr 11, 2011, 7:44:16 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) fix 2.30b1 memory corruption bug when editing trackers.

The problem was that the new number of trackers was not being kept and the old count was retained. So if the count changed, tr_torrentTrackers() could return dangling pointers to the caller.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r12347 r12350  
    16261626    tgt->wasCopied = true;
    16271627    tgt->trackers = keep.trackers;
     1628    tgt->tracker_count = keep.tracker_count;
    16281629    tgt->announce_events = tr_memdup( src->announce_events, sizeof( tr_announce_event ) * src->announce_event_count );
    16291630    tgt->announce_event_count = src->announce_event_count;
Note: See TracChangeset for help on using the changeset viewer.