Text   |  XML   |  ReML   |   Visible Warnings:

Buffer Overrun  at ftype-string.c:118

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

string_to_repr

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/ftypes/ftype-string.c)expand/collapse
Show more  
 98  string_to_repr(fvalue_t *fv, ftrepr_t rtype, char *buf)
 99  {
 100          gchar *p, c;
 101          char *bufp;
 102          char hex[3];
 103   
 104          if (rtype == FTREPR_DFILTER) {
 105                  bufp = buf;
 106                  *bufp++ = '"';
 107                  for (p = fv->value.string; (c = *p) != '\0'; p++) {
 108                          /* Backslashes and double-quotes must 
 109                           * be escaped. */
 110                          if (c == '\\' || c == '"') {
 111                                  *bufp++ = '\\';
 112                                  *bufp++ = c;
 113                          }
 114                          /* Values that can't nicely be represented 
 115                           * in ASCII need to be escaped. */
 116                          else if (!isprint((unsigned char)c)) {
 117                                  /* c --> \xNN */
 118                                  sprintf(hex, "%02x", (unsigned char) c);
Show more  




Change Warning 1119.29858 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: