Text   |  XML   |  ReML   |   Visible Warnings:

Negative file descriptor  at packet-asn1.c:2830

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

read_asn1_type_table

(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c)expand/collapse
Show more  
 2803  read_asn1_type_table(const char *filename)
 2804  {
 2805          FILE *f;
 2806          guint size;
 2807          guchar *data;
 2808          struct stat stat;
 2809          static guint mylogh = 0;
 2810   
 2811          if ((filename == 0) || (strlen(filename) == 0))
 2812                  return;         /* no filename provided */
 2813   
 2814          f = ws_fopen(filename, "rb");
 2815          if (f == 0) {
 2816                  /*
 2817                   * Ignore "file not found" errors if it's the old default 
 2818                   * ASN.1 file name, as we never shipped such a file.
 2819                   * Also, on Win32, ignore the earlier default, which 
 2820                   * had a "/" rather than a "\" as the last pathname
 2821                   * separator.
 2822                   */
 2823  #ifdef _WIN32 
 2824                  if (strcmp(filename, bad_separator_old_default_asn1_filename) != 0)
 2825  #endif
 2826                          if ((strcmp(filename, old_default_asn1_filename) != 0) || errno != ENOENT)
 2827                                  report_open_failure(filename, errno, FALSE);
 2828                  return;
 2829          }
 2830          fstat(fileno(f), &stat);
Show more  




Change Warning 3596.35199 : Negative file descriptor

Priority:
State:
Finding:
Owner:
Note: