Negative Character Value at dbs-etherwatch.c:632 |
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)![]() | ||||||
![]() | ||||||
622 | while(dump[pos] != end) { | |||||
623 | /* Check the hex value */ | |||||
624 | if(!(isxdigit((guchar)dump[pos]) && | |||||
625 | isxdigit((guchar)dump[pos + 1]))) { | |||||
626 | return 0; | |||||
627 | } | |||||
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 */ | |||||
![]() |