[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" <address@hidden>
>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.