Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-beep.c:474

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

dissect_beep_int

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-beep.c)expand/collapse
Show more  
 446  dissect_beep_int(tvbuff_t *tvb, int offset,
 447                      proto_tree *tree, int hf, int *val, int *hfa[])
 448  {
 449    proto_item  *hidden_item;
 450    int ival, ind = 0;
 451    unsigned int i = num_len(tvb, offset);
 452    guint8 int_buff[100];
 453   
 454    memset(int_buff, '\0', sizeof(int_buff));
 455   
 456    tvb_memcpy(tvb, int_buff, offset, MIN(sizeof(int_buff) - 1, i));
 457   
 458    /* XXX - is this still "Dangerous" now that we don't copy to the 
 459       last byte of "int_buff[]"? */
 460    sscanf((gchar*)int_buff, "%d", &ival);
 461   
 462    if (tree) {
 463      proto_tree_add_uint(tree, hf, tvb, offset, i, ival);
 464    }
 465   
 466    while (hfa[ind]) {
 467   
 468      hidden_item = proto_tree_add_uint(tree, *hfa[ind], tvb, offset, i, ival);
 469          PROTO_ITEM_SET_HIDDEN(hidden_item);
 470      ind++;
 471   
 472    }
 473   
 474    *val = ival;  /* Return the value */
Show more  




Change Warning 1926.31523 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: