[MPlayer-dev-eng] [PATCH] configure: prevent some shells from crashing

compn tempn at twmi.rr.com
Thu Apr 16 03:23:09 CEST 2009


passed to me on irc:

<Compn> you just added a space ?
<dmg> Compn: Well, two spaces actually.
<dmg> Compn: The problem is that $(( is shell arithmetic expansion
<dmg> and dash searches the rest of the file looking for the closing ))
<Compn> which shell ?
<dmg> http://en.wikipedia.org/wiki/Debian_Almquist_shell
<Compn> it causes a segfault ?
<dmg> Compn: yes, because dash builds assembles its strings on the
stack using alloca() and evenetually it runs out of space.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mplayer-dash-segfault.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090415/11037b92/attachment.txt>


More information about the MPlayer-dev-eng mailing list