[mapserver-users] double fclose makes mapserver segfault
ricky_georgy at yahoo.fr
Tue Jul 30 16:18:53 EDT 2002
Whenever I had a non existant image referenced in a
symbol files, mapserver segfaults.
Investigating a little closer reveals that this is
caused by a fclose after the file is closed:
in msLoadSymbolSet (mapsymbol.c) , we can see a
flclose(msyyin) at the end of the
function: the stream is closed in all cases.
But in there is an error in loadSymbol, the stream is
After, it will be closed again in msLoadSymbolSet, and
For the solution, either it is up to the caller to
close the stream on
error, or the caller should not close it if an error
returned. Perhaps the first solution is more
orthogonal, but as
msLoadSymbolSet is not the only caller of loadSymbol
loadMapInternal) a generic solution is needed.
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
More information about the mapserver-users