Text   |  XML   |  ReML   |   Visible Warnings:

Buffer Overrun  at value_string.c:61

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

ssi_10_3

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ipmi-se.c)expand/collapse
Show more  
 1092  ssi_10_3(proto_tree *tree, tvbuff_t *tvb, const struct sensor_info *si _U_,
 1093                  guint32 b, guint32 offs, guint32 d)
 1094  {
 1095          proto_item *ti;
 1096          proto_tree *s_tree;
 1097          const value_string *off_vals;
 1098   
 1099          if (b == 0x3 && offs == 0x01) {
 1100                  if (!ssi_10_saveptr) {
 1101                          return FALSE; /* something went wrong */
 1102                  }
 1103                  off_vals = ssi_10_saveptr->offsets ? ssi_10_saveptr->offsets : et_empty;
 1104                  ti = proto_tree_add_text(tree, tvb, 0, 1, "Logging details/Offset");
 1105                  s_tree = proto_item_add_subtree(ti, ett_ipmi_se_evt_evd_byte3);
 1106                  proto_tree_add_text(tree, tvb, 0, 1, "%sLogging disable for all events of given type: %s",
 1107                                  ipmi_dcd8(d, 0x20), (d & 0x20) ? "True" : "False");
 1108                  proto_tree_add_text(tree, tvb, 0, 1, "%s%s event",
 1109                                  ipmi_dcd8(d, 0x10), (d & 0x10) ? "Deassertion" : "Assertion");
 1110                  d &= 0x0f;
 1111                  proto_tree_add_text(tree, tvb, 0, 1, "%sEvent Offset: %s (0x%02x)",
 1112[+]                                 ipmi_dcd8(d, 0x0f), val_to_str(d, off_vals, "Unknown"), d);
expand/collapse

val_to_str

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/value_string.c)expand/collapse
Show more  
 39  const gchar*
 40  val_to_str(guint32 val, const value_string *vs, const char *fmt) {
 41    const gchar *ret;
 42   
 43    g_assert(fmt != NULL);
 44   
 45[+]   ret = match_strval(val, vs);
expand/collapse

match_strval

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/value_string.c)expand/collapse
Show more  
 75  const gchar*
 76  match_strval(guint32 val, const value_string *vs) {
 77      gint ignore_me;
 78[+]     return match_strval_idx(val, vs, &ignore_me);
expand/collapse

match_strval_idx

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/value_string.c)expand/collapse
Show more  
 56  const gchar*
 57  match_strval_idx(guint32 val, const value_string *vs, gint *idx) {
 58    gint i = 0;
 59   
 60    if(vs) {
 61      while (vs[i].strptr) {
 62        if (vs[i].value == val) {
 63          *idx = i;
 64          return(vs[i].strptr);
 65        }
 66        i++;
Show more  
Show more  
Show more  
Show more  




Change Warning 3478.31167 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: