Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Call  at toshiba.c:254

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

toshiba_read

(/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/toshiba.c)expand/collapse
Show more  
 235  static gboolean toshiba_read(wtap *wth, int *err, gchar **err_info,
 236      gint64 *data_offset)
 237  {
 238          gint64  offset;
 239          guint8  *buf;
 240          int     pkt_len;
 241   
 242          /* Find the next packet */
 243          offset = toshiba_seek_next_packet(wth, err);
 244          if (offset < 1)
 245                  return FALSE;
 246   
 247          /* Parse the header */
 248          pkt_len = parse_toshiba_rec_hdr(wth, wth->fh, &wth->pseudo_header,
 249              err, err_info);
 250          if (pkt_len == -1)
 251                  return FALSE;
 252   
 253          /* Make sure we have enough room for the packet */
 254          buffer_assure_space(wth->frame_buffer, TOSHIBA_MAX_PACKET_LEN);
 255          buf = buffer_start_ptr(wth->frame_buffer);
 256   
 257          /* Convert the ASCII hex dump to binary data */
 258          if (!parse_toshiba_hex_dump(wth->fh, pkt_len, buf, err, err_info))
 259                  return FALSE;
 260   
 261          wth->data_offset = offset;
 262          *data_offset = offset;
 263          return TRUE;
 264  }
Show more  




Change Warning 1056.30207 : Unreachable Call

Priority:
State:
Finding:
Owner:
Note: