Text   |  XML   |  ReML   |   Visible Warnings:

Empty if Statement  at pcapng.c:551

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

pcapng_read_if_descr_block

(/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/pcapng.c)expand/collapse
Show more  
 541                  if (bytes_read <= 0) {
 542                          pcapng_debug0("pcapng_read_if_descr_block: failed to read option");
 543                          return bytes_read;
 544                  }
 545                  block_read += bytes_read;
 546                  to_read -= bytes_read;
 547   
 548                  /* handle option content */
 549                  switch(oh.option_code) {
 550                      case(0): /* opt_endofopt */
 551                          if(to_read != 0) {
 552                                  pcapng_debug1("pcapng_read_if_descr_block: %u bytes after opt_endofopt", to_read);
 553                          }
 554                          /* padding should be ok here, just get out of this */
 555                          to_read = 0;
 556                          break;
 557                      case(1): /* opt_comment */
 558                          if(oh.option_length > 0 && oh.option_length < sizeof(option_content)) {
 559                                  wblock->data.section.opt_comment = g_strndup(option_content, sizeof(option_content));
 560                                  pcapng_debug1("pcapng_read_if_descr_block: opt_comment %s", wblock->data.section.opt_comment);
 561                          } else {
Show more  




Change Warning 5.26852 : Empty if Statement

Priority:
State:
Finding:
Owner:
Note: