dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 8043a2a4539e3575da7c85d64fa08fa43ad73904
parent a3db63d19a867c4d0e4b38e64377dc6ca38e240c
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Thu, 18 Sep 2008 23:09:08 +0200

Prevent a buffer overflow when escape sequences aren't properly terminated

Diffstat:
madtty.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/madtty.c b/madtty.c @@ -696,6 +696,8 @@ static void try_interpret_escape_seq(madtty_t *t) case MADTTY_HANDLER_OK: goto cancel; case MADTTY_HANDLER_NOTYET: + if (t->elen + 1 >= (int)sizeof(t->ebuf)) + goto cancel; return; } }