Unreachable Computation at ascend-scanner.c:2413 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
ascend_scan_bytes (/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/ascend-scanner.c)![]() | ||||||
![]() | ||||||
2388 | YY_BUFFER_STATE ascend_scan_bytes (yyconst char * yybytes, int _yybytes_len ) | |||||
2389 | { | |||||
2390 | YY_BUFFER_STATE b; | |||||
2391 | char *buf; | |||||
2392 | yy_size_t n; | |||||
2393 | int i; | |||||
2394 | ||||||
2395 | /* Get memory for full buffer, including space for trailing EOB's. */ | |||||
2396 | n = _yybytes_len + 2; | |||||
2397 | buf = (char *) ascendalloc(n ); | |||||
2398 | if ( ! buf ) | |||||
2399 | YY_FATAL_ERROR( "out of dynamic memory in ascend_scan_bytes()" ); | |||||
2400 | ||||||
2401 | for ( i = 0; i < _yybytes_len; ++i ) | |||||
2402 | buf[i] = yybytes[i]; | |||||
2403 | ||||||
2404 | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; | |||||
2405 | ||||||
2406 | b = ascend_scan_buffer(buf,n ); | |||||
2407 | if ( ! b ) | |||||
2408 | YY_FATAL_ERROR( "bad buffer in ascend_scan_bytes()" ); | |||||
2409 | ||||||
2410 | /* It's okay to grow etc. this buffer, and we should throw it | |||||
2411 | * away when we're done. | |||||
2412 | */ | |||||
2413 | b->yy_is_our_buffer = 1;
| |||||
2414 | ||||||
2415 | return b; | |||||
2416 | } | |||||
![]() |