Text   |  XML   |  ReML   |   Visible Warnings:

Empty if Statement  at pcapng.c:412

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

pcapng_read_section_header_block

(/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/pcapng.c)expand/collapse
Show more  
 402                  if (bytes_read <= 0) {
 403                          pcapng_debug0("pcapng_read_section_header_block: failed to read option");
 404                          return bytes_read;
 405                  }
 406                  block_read += bytes_read;
 407                  to_read -= bytes_read;
 408   
 409                  /* handle option content */
 410                  switch(oh.option_code) {
 411                      case(0): /* opt_endofopt */
 412                          if(to_read != 0) {
 413                                  pcapng_debug1("pcapng_read_section_header_block: %u bytes after opt_endofopt", to_read);
 414                          }
 415                          /* padding should be ok here, just get out of this */
 416                          to_read = 0;
 417                          break;
 418                      case(1): /* opt_comment */
 419                          if(oh.option_length > 0 && oh.option_length < sizeof(option_content)) {
 420                                  wblock->data.section.opt_comment = g_strndup(option_content, sizeof(option_content));
 421                                  pcapng_debug1("pcapng_read_section_header_block: opt_comment %s", wblock->data.section.opt_comment);
 422                          } else {
Show more  




Change Warning 4.26850 : Empty if Statement

Priority:
State:
Finding:
Owner:
Note: