Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-asn1.c:4315

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

getPDUprops

(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c)expand/collapse
Show more  
 4283  static PDUprops *
 4284  getPDUprops(PDUprops *out, guint offset, guint class, guint tag, guint cons)
 4285  {
 4286          statestack pos, pos2, save_pos;
 4287          PDUinfo *info;
 4288          const char *ret, *tmp;
 4289          int typeflags = 0, donext = 0, pushed = 0, cons_handled = 0;
 4290          static char namestr[64]; /* enough ? */
 4291          static char posstr[40];
 4292          static char noname[] = "*noname*";
 4293          static PDUprops constructed_save; /* for unexpectedly constructed enteties */
 4294   
 4295          if (PDUstatec > 0)      /* don't read from below the stack */
 4296                  pos = POPSTATE;
 4297          /* pos refers to the last asn1 node handled */
 4298   
 4299          /* a very simple, too simple??, way to handle constructed entities */
 4300          if ((PDUstatec > 0) && (pos.type & TBL_CONSTRUCTED)) {
 4301                          /* unexpectedly constructed, return same info as last time */
 4302                  g_sprintf(posstr, "==off=%d %c%d%c", offset, tag_class[class], tag, cons?'c':'p');
 4303                  showstack(&pos, posstr, 3);
 4304                  pos.offset = offset;
 4305                  pos.type &= ~TBL_CONSTRUCTED; /* remove the flag */
 4306                  PUSHNODE(pos);  /* push extra, to match with a EOI operation */
 4307                  PUSHNODE(pos);  /* restore the stack */
 4308                  *out = constructed_save;
 4309                  if (asn1_verbose)
 4310                          g_message("  return for constructed %s (%s)%s",
 4311                                    TBLTYPE(out->type), out->typename, out->name);
 4312                  return out;
 4313          }
 4314   
 4315          save_pos = pos; /* may need it again */
Show more  




Change Warning 3570.30132 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: