Text   |  XML   |  ReML   |   Visible Warnings:

Buffer Overrun  at packet-tpncp.c:471

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

fill_tpncp_id_vals

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-tpncp.c)expand/collapse
Show more  
 458  static gint fill_tpncp_id_vals(value_string string[], FILE *file) {
 459      gint i = 0, tpncp_id = 0;
 460      gchar *tpncp_name = NULL, *line_in_file = NULL;
 461   
 462[+]     line_in_file = ep_alloc(MAX_TPNCP_DB_ENTRY_LEN);
 463      line_in_file[0] = 0;
 464[+]     tpncp_name = ep_alloc(MAX_TPNCP_DB_ENTRY_LEN);
 465      tpncp_name[0] = 0;
 466   
 467      while (fgets(line_in_file, MAX_TPNCP_DB_ENTRY_LEN, file) != NULL) {
 468          if (!strncmp(line_in_file, "#####", 5)) {
 469              break;
 470          }
 471          if (sscanf(line_in_file, "%s %d", tpncp_name, &tpncp_id) == 2) {
 472              string[i].strptr = g_strdup(tpncp_name);
 473              string[i].value = tpncp_id;
 474              if (i < MAX_TPNCP_DB_SIZE) {
 475                  i++;
Show more  




Change Warning 3019.30226 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: