Text   |  XML   |  ReML   |   Visible Warnings:

Redundant Condition  at toshiba.c:281

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

toshiba_seek_read

(/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/toshiba.c)expand/collapse
Show more  
 268  toshiba_seek_read (wtap *wth, gint64 seek_off,
 269          union wtap_pseudo_header *pseudo_header, guint8 *pd, int len,
 270          int *err, gchar **err_info)
 271  {
 272          int     pkt_len;
 273   
 274          if (file_seek(wth->random_fh, seek_off - 1, SEEK_SET, err) == -1)
 275                  return FALSE;
 276   
 277          pkt_len = parse_toshiba_rec_hdr(NULL, wth->random_fh, pseudo_header,
 278              err, err_info);
 279   
 280          if (pkt_len != len) {
 281                  if (pkt_len != -1) {
 282                          *err = WTAP_ERR_BAD_RECORD;
 283                          *err_info = g_strdup_printf("toshiba: requested length %d doesn't match record length %d",
 284                              len, pkt_len);
 285                  }
 286                  return FALSE;
 287          }
 288   
 289          return parse_toshiba_hex_dump(wth->random_fh, pkt_len, pd, err, err_info);
 290  }
Show more  




Change Warning 1057.30208 : Redundant Condition

Priority:
State:
Finding:
Owner:
Note: