AGG renderer segfaults on Ubuntu 14.04
|Reported by:||jng||Owned by:||jng|
The AGG renderer segfaults after a few successive pans and zooms on Ubuntu 14.04
This is due to the use of memcpy() in agg::font_cache_pool::font(), which when run under valgrind reports that the call to memcpy() involves overlapped source and destination parameters. I believe the segfault is the result of attempting to free part of a different font_cache pointer in the m_fonts array.
Attached is a patch that replaces the memcpy() call with memmove(). The segfault is no longer observable.