Changeset b6bd99c


Ignore:
Timestamp:
2014-10-27T06:36:09Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
d2b3f25
Parents:
8256ad5
Message:

dcc: Fix some invalid memory accesses reported by ASAN

ASAN <3

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dcc.c

    r8256ad5 rb6bd99c  
    385385                                b_event_remove( df->watch_out );
    386386
     387                        df->watch_in = 0;
     388
    387389                        if( df->proto_finished )
    388390                                dcc_finish( ft );
    389391
    390                         df->watch_in = 0;
    391392                        return FALSE;
    392393                }
  • lib/ftutil.c

    r8256ad5 rb6bd99c  
    138138
    139139        /* I hate static-length strings.. */
    140         host[HOST_NAME_MAX] = '\0';
     140        host[HOST_NAME_MAX-1] = '\0';
    141141        port[5] = '\0';
    142142       
Note: See TracChangeset for help on using the changeset viewer.