Skip to content

Commit

Permalink
Change assert() to fatal_assert() since can be triggered by evil sender
Browse files Browse the repository at this point in the history
  • Loading branch information
keithw committed Oct 5, 2012
1 parent deecf6b commit 052e7cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/transportfragment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 052e7cc

Please sign in to comment.