Fixed a buffer overflow problem (sometimes PATH_MAX just isn't enough) - Paths can become longer than PATH_MAX during processing inside SB2, for example when getcwd() returns a really long path and a relative path is then joined to it (and this this did happen...) - Fixed potential problems in luaif/paths.c by replacing almost all references to fixed-sized buffers by dynamically allocated buffers; the remaining fixed-sized buffers are used as parameters to well-defined system calls and buffer overflows should not be possible with those.
Fixed a buffer overflow problem (sometimes PATH_MAX just isn't enough) - Paths can become longer than PATH_MAX during processing inside SB2, for example when getcwd() returns a really long path and a relative path is then joined to it (and this this did happen...) - Fixed potential problems in luaif/paths.c by replacing almost all references to fixed-sized buffers by dynamically allocated buffers; the remaining fixed-sized buffers are used as parameters to well-defined system calls and buffer overflows should not be possible with those.

loganchien/scratchbox2,ldbox/ldbox,BinChengfei/scratchbox2,h113331pp/scratchbox2,lbt/scratchbox2,neeraj9/sbox2,madscientist42/scratchbox2,h113331pp/scratchbox2,ldbox/ldbox,ldbox/ldbox,OlegGirko/ldbox,freedesktop-unofficial-mirror/sbox2,neeraj9/sbox2,lbt/scratchbox2,OlegGirko/ldbox,freedesktop-unofficial-mirror/sbox2,ldbox/ldbox,loganchien/scratchbox2,freedesktop-unofficial-mirror/sbox2,BinChengfei/scratchbox2,neeraj9/sbox2,loganchien/scratchbox2,OlegGirko/ldbox,h113331pp/scratchbox2,h113331pp/scratchbox2,madscientist42/scratchbox2,neeraj9/sbox2,madscientist42/scratchbox2,lbt/scratchbox2,BinChengfei/scratchbox2,loganchien/scratchbox2,neeraj9/sbox2,lbt/scratchbox2,lbt/scratchbox2,madscientist42/scratchbox2,h113331pp/scratchbox2,madscientist42/scratchbox2,freedesktop-unofficial-mirror/sbox2,OlegGirko/ldbox,loganchien/scratchbox2,freedesktop-unofficial-mirror/sbox2,ldbox/ldbox,OlegGirko/ldbox,h113331pp/scratchbox2,BinChengfei/scratchbox2,madscientist42/scratchbox2,BinChengfei/scratchbox2,BinChengfei/scratchbox2,neeraj9/sbox2,OlegGirko/ldbox,freedesktop-unofficial-mirror/sbox2,ldbox/ldbox,loganchien/scratchbox2