]> granicus.if.org Git - mutt/commit
Certain versions of libc may segfault during regex processing if given
authorAnders Helmersson <anders.helmersson.utsikt@wasadata.net>
Sun, 7 Aug 2005 06:20:37 +0000 (06:20 +0000)
committerAnders Helmersson <anders.helmersson.utsikt@wasadata.net>
Sun, 7 Aug 2005 06:20:37 +0000 (06:20 +0000)
commit4b1deb5782546ce18f5cf68c3c10be30aed04510
treec75da352e046c9c3d518d95d95d8ab45b041b605
parentf76955aeae1e2c3d88636f76e467327d94be647d
Certain versions of libc may segfault during regex processing if given
incomplete multibyte characters. Work around this by manually trimming
the display buffer. I modified it somewhat to only check when the
situation is most likely to occur: fgets has read all the way to the
capacity of the buffer. Thanks also to Tamo for his comments.
pager.c