Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at packet-smb-pipe.c:546

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

add_abstime_common

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-smb-pipe.c)expand/collapse
Show more  
 522  add_abstime_common(tvbuff_t *tvb, int offset, proto_tree *tree, int hf_index,
 523      const char *absent_name)
 524  {
 525          nstime_t nstime;
 526          struct tm *tmp;
 527   
 528[+]         nstime.secs = tvb_get_letohl(tvb, offset);
 529          nstime.nsecs = 0;
 530          /*
 531           * Sigh.  Sometimes it appears that -1 means "unknown", and 
 532           * sometimes it appears that 0 means "unknown", for the last 
 533           * logoff date/time.
 534           */
 535          if (nstime.secs == -1 || nstime.secs == 0) {
 536                  proto_tree_add_time_format(tree, hf_index, tvb, offset, 4,
 537                      &nstime, "%s: %s", proto_registrar_get_name(hf_index),
 538                      absent_name);
 539          } else {
 540                  /*
 541                   * Run it through "gmtime()" to break it down, and then
 542                   * run it through "mktime()" to put it back together 
 543                   * as UTC.
 544                   */
 545                  tmp = gmtime(&nstime.secs);
 546                  tmp->tm_isdst = -1;     /* we don't know if it's DST or not */
Show more  




Change Warning 2957.31326 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: