Permalink
Browse files

Change assert() to fatal_assert() since can be triggered by evil sender

  • Loading branch information...
1 parent deecf6b commit 052e7cc812749ffa0fe1ba4b17cf67a8d17e3b49 @keithw keithw committed Oct 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/network/transportfragment.cc
@@ -76,7 +76,7 @@ Fragment::Fragment( string &x )
: id( -1 ), fragment_num( -1 ), final( false ), initialized( true ),
contents()
{
- assert( x.size() >= frag_header_len );
+ fatal_assert( x.size() >= frag_header_len );
contents = string( x.begin() + frag_header_len, x.end() );
uint64_t data64;

0 comments on commit 052e7cc

Please sign in to comment.