Negative Character Value at dbs-etherwatch.c:638 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
parse_hex_dump (/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/dbs-etherwatch.c)![]() | ||||||
![]() | ||||||
628 | /* Get the hex value value */ | |||||
629 | if(isdigit((guchar)dump[pos])) { | |||||
630 | buf[count] = (dump[pos] - '0') << 4; | |||||
631 | } else { | |||||
632 | buf[count] = (toupper(dump[pos]) - 'A' + 10) << 4; | |||||
633 | } | |||||
634 | pos++; | |||||
635 | if(isdigit((guchar)dump[pos])) { | |||||
636 | buf[count] += dump[pos] - '0'; | |||||
637 | } else { | |||||
638 | buf[count] += toupper(dump[pos]) - 'A' + 10;
| |||||
639 | } | |||||
640 | pos++; | |||||
641 | count++; | |||||
642 | /* Skip the seperator characters */ | |||||
643 | while(dump[pos] == seperator) { | |||||
644 | pos++; | |||||
645 | } | |||||
646 | } | |||||
647 | return count; | |||||
648 | } | |||||
![]() |