Changeset 6728
- Timestamp:
- Sep 6, 2008, 7:26:25 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/bencode-test.c
r6615 r6728 341 341 342 342 static int 343 testStackSmash( void)343 testStackSmash( int depth ) 344 344 { 345 345 int i; 346 346 int len; 347 int depth;348 347 int err; 349 348 uint8_t * in; … … 352 351 char * saved; 353 352 354 depth = 1000000;355 353 in = tr_new( uint8_t, depth*2 + 1 ); 356 354 for( i=0; i<depth; ++i ) { … … 389 387 return i; 390 388 391 if(( i = testStackSmash( ))) 392 return i; 393 394 return 0; 395 } 389 #ifndef WIN32 390 i = testStackSmash( 1000000 ); 391 #else 392 i = testStackSmash( 100000 ); 393 #endif 394 if( i ) 395 return i; 396 397 return 0; 398 }
Note: See TracChangeset
for help on using the changeset viewer.