Changeset a37e578


Ignore:
Timestamp:
2005-12-04T02:37:55Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
bad4a586
Parents:
ed59700
Message:

Fixes potential DoS attack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bitlbee.c

    red59700 ra37e578  
    165165                return FALSE;
    166166        }
    167                
     167       
     168        /* Very naughty, go read the RFCs! >:) */
     169        if( strlen( irc->readbuffer ) > 1024 )
     170        {
     171                log_message( LOGLVL_ERROR, "Maximum line length exceeded." );
     172                irc_free( irc );
     173                return FALSE;
     174        }
     175       
    168176        return TRUE;
    169177}
Note: See TracChangeset for help on using the changeset viewer.