diff options
| author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-05-25 04:36:16 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-05-25 04:36:16 +0200 |
| commit | cf657b418bcd4703ee8c7cce7ac07688a82b57cd (patch) | |
| tree | df9702d0c3c4f807c86748cb67a118207b299454 /lib | |
| parent | 96511b274de06c994597e45236730fee324fd15f (diff) | |
| download | plan9front-cf657b418bcd4703ee8c7cce7ac07688a82b57cd.tar.xz | |
libdraw: fix agefont crash when display == nil (from sources / agefont-nodisplay patch)
If you run this:
{for (i in `{seq 1 70000}) echo '½•α·'} | mc | wc
mc will eventually suicide. The error comes from
/sys/src/libdraw/font.c:/^agefont which assumes it has a
display. Normally, this is set up by geninitdraw (usually
via initdraw), but mc.c avoids that to avoid the screen
redraws (flicker, at a minimum, but worse in long-running
cases).
graphics(2) does not prohibit this use, so I made the least
intrusive change to make it work.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
