Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20051227: gempak radmap_sw bug report



Jose,

Thanks. We'll fix that.

Steve Chiswell
Unidata User Support


>From: "Jose F. Nieves" <nieves@xxxxxxxxxxxxxxx>
>Organization: UCAR/Unidata
>Keywords: 200512271928.jBRJSs7s024534

>gempak-5.9.1 compiled on freebsd-6.0 on amd64 in 64 bit mode.
>
>radmap_sw tool gives a segmentation fault error.
>
>Traced to
>	line: 120
>	file: source/driver/active/gif/wsatim.c 
>	
>        /*
>         * Insert null at end of file name.
>         */
>        filnam[*lenfil] = '\0';
>
>Problem: seems to be that lenfil is declared as 
>
>	 long int *lenfil
>
>	 in the argument list, but it is passed an int* from the function
>	 hsatim() in hsatim.f, so lenfil in wsatim() is probably reading
>	 some 32 extra bytes of junk, and filnam[*lenfil] is out of bounds.
>
>Jose F Nieves
>
--
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publicly available
through the web.  If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690