Unreachable Computation at text2pcap-scanner.c:1590 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
yy_scan_bytes (/home/sate/Testcases/c/cve/wireshark-1.2.0/text2pcap-scanner.c)![]() | ||||||
![]() | ||||||
1565 | YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len ) | |||||
1566 | { | |||||
1567 | YY_BUFFER_STATE b; | |||||
1568 | char *buf; | |||||
1569 | yy_size_t n; | |||||
1570 | int i; | |||||
1571 | ||||||
1572 | /* Get memory for full buffer, including space for trailing EOB's. */ | |||||
1573 | n = _yybytes_len + 2; | |||||
1574 | buf = (char *) yyalloc(n ); | |||||
1575 | if ( ! buf ) | |||||
1576 | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); | |||||
1577 | ||||||
1578 | for ( i = 0; i < _yybytes_len; ++i ) | |||||
1579 | buf[i] = yybytes[i]; | |||||
1580 | ||||||
1581 | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; | |||||
1582 | ||||||
1583 | b = yy_scan_buffer(buf,n ); | |||||
1584 | if ( ! b ) | |||||
1585 | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); | |||||
1586 | ||||||
1587 | /* It's okay to grow etc. this buffer, and we should throw it | |||||
1588 | * away when we're done. | |||||
1589 | */ | |||||
1590 | b->yy_is_our_buffer = 1;
| |||||
1591 | ||||||
1592 | return b; | |||||
1593 | } | |||||
![]() |