Text   |  XML   |  ReML   |   Visible Warnings:

Empty if Statement  at pcapng.c:946

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

pcapng_read_interface_statistics_block

(/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/pcapng.c)expand/collapse
Show more  
 936                  if (bytes_read <= 0) {
 937                          pcapng_debug0("pcapng_read_interface_statistics_block: failed to read option");
 938                          return bytes_read;
 939                  }
 940                  block_read += bytes_read;
 941                  to_read -= bytes_read;
 942   
 943                  /* handle option content */
 944                  switch(oh.option_code) {
 945                      case(0): /* opt_endofopt */
 946                          if(to_read != 0) {
 947                                  pcapng_debug1("pcapng_read_interface_statistics_block: %u bytes after opt_endofopt", to_read);
 948                          }
 949                          /* padding should be ok here, just get out of this */
 950                          to_read = 0;
 951                          break;
 952                      case(1): /* opt_comment */
 953                          if(oh.option_length > 0 && oh.option_length < sizeof(option_content)) {
 954                                  wblock->data.section.opt_comment = g_strndup(option_content, sizeof(option_content));
 955                                  pcapng_debug1("pcapng_read_interface_statistics_block: opt_comment %s", wblock->data.section.opt_comment);
 956                          } else {
Show more  




Change Warning 8.26857 : Empty if Statement

Priority:
State:
Finding:
Owner:
Note: