Multiple stack-based buffer overflows in the expand function in os/pl-glob.c in SWI-Prolog before 6.2.5 and 6.3.x before 6.3.7 allow remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted filename.
https://lists.iai.uni-bonn.de/pipermail/swi-prolog/2012/009428.html
https://bugzilla.redhat.com/show_bug.cgi?id=891577
http://www.swi-prolog.org/git/pl.git/commit/b2c88972e7515ada025e97e7d3ce3e34f81cf33e