Text   |  XML   |  ReML   |   Visible Warnings:

Cast Alters Value  at strutil.c:577

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

uri_str_to_bytes

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/strutil.c)expand/collapse
Show more  
 552  uri_str_to_bytes(const char *uri_str, GByteArray *bytes) {
 553          guint8          val;
 554          const guchar    *p;
 555          guchar          hex_digit[HEX_DIGIT_BUF_LEN];
 556   
 557          g_byte_array_set_size(bytes, 0);
 558          if (! uri_str) {
 559                  return FALSE;
 560          }
 561   
 562          p = (const guchar *)uri_str;
 563   
 564          while (*p) {
 565                  if (! isascii(*p) || ! isprint(*p))
 566                          return FALSE;
 567                  if (*p == '%') {
 568                          p++;
 569                          if (*p == '\0') return FALSE;
 570                          hex_digit[0] = *p;
 571                          p++;
 572                          if (*p == '\0') return FALSE;
 573                          hex_digit[1] = *p;
 574                          hex_digit[2] = '\0';
 575                          if (! isxdigit(hex_digit[0]) || ! isxdigit(hex_digit[1]))
 576                                  return FALSE;
 577                          val = (guint8) strtoul((char *)hex_digit, NULL, 16);
Show more  




Change Warning 1099.29729 : Cast Alters Value

Priority:
State:
Finding:
Owner:
Note: