Referencing a missing svg file in a symbol definition cause an assert. The assert message says: "mapserv: (mapserver directory)/mapcairo.c:998: msRenderRasterizedSVGSymbol: Assertion `svg_cache->pixmap_buffer->height && svg_cache->pixmap_buffer->width' failed.".
Fix empty svg assert (#4899)
* Added a return ms_failure when symbol svg file path doesn't point on an existing file
* Removed the assert in the freeSVGCache function of mapcairo.c
Referenced by pull request #4900
Fix failed assertion with non-existant svg symbols (#4899)
Applied without the unrelated cosmetic changes in 83e4ee8
Using a mapfile with a missing SVG symbol in it still cause an assert in the "freeSVGCache" function on line 1039 of "mapcairo.c". I realise I did a poor job at explaining the second part of my pull request (#4900) but it was supposed to fix this assert.
add missing check for #4899
Sorry, I've added the check in 75a5408 . I'm leaving in the assertion as it would be a bug needing fixing if the renderer_cache came in with a NULL svg handle.