Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-smb-common.c:305

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

dnsserver_dissect_struct_DNS_RPC_NAME

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-dnsserver.c)expand/collapse
Show more  
 588  dnsserver_dissect_struct_DNS_RPC_NAME(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
 589  {
 590          proto_item *item = NULL;
 591          proto_tree *tree = NULL;
 592          int old_offset;
 593          dcerpc_info *di = NULL;
 594          guint8 len;
 595          const char *dn;
 596          int dn_len;
 597          guint16 bc;
 598          di=pinfo->private_data;
 599          if(di->conformant_run){
 600                  /*just a run to handle conformant arrays, nothing to dissect */
 601                  return offset;
 602          }
 603          old_offset = offset;
 604          if (parent_tree) {
 605                  item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE);
 606                  tree = proto_item_add_subtree(item, ett_dnsserver_DNS_RPC_NAME);
 607          }
 608          offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep, hf_dnsserver_DNS_RPC_NAME_NameLength, &len);
 609          bc = tvb_length_remaining(tvb, offset);
 610          dn = get_unicode_or_ascii_string(tvb, &offset,
 611[+]                         TRUE, &dn_len, TRUE, TRUE, &bc);
expand/collapse

get_unicode_or_ascii_string

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-smb-common.c)expand/collapse
Show more  
 280  const gchar *
 281  get_unicode_or_ascii_string(tvbuff_t *tvb, int *offsetp,
 282      gboolean useunicode, int *len, gboolean nopad, gboolean exactlen,
 283      guint16 *bcp)
 284  {
 285    gchar *cur;
 286    const gchar *string;
 287    int string_len = 0;
 288    int copylen;
 289    gboolean overflow = FALSE;
 290   
 291    if (*bcp == 0) {
 292      /* Not enough data in buffer */
 293      return NULL;
 294    }
 295    if (useunicode) {
 296      if ((!nopad) && (*offsetp % 2)) {
 297        (*offsetp)++;   /* Looks like a pad byte there sometimes */
 298        (*bcp)--;
 299        if (*bcp == 0) {
 300          /* Not enough data in buffer */
 301          return NULL;
 302        }
 303      }
 304      if(exactlen){
 305        string_len = *len;
Show more  
Show more  




Change Warning 1649.33545 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: