]> git.pond.sub.org Git - empserver/commit
Fix client code for catching rogue redirections and executes
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 23 Aug 2008 20:19:09 +0000 (16:19 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 27 Aug 2008 01:42:32 +0000 (21:42 -0400)
commit55b7fa158858b6dd3d47e60967fd59c69575983b
tree5250b49b983d763584db68302775a750e79a3608
parent741a7e54bd9ca6d7ce099c29a9472f4ce5eadbee
Fix client code for catching rogue redirections and executes

The client permits redirection and execute only if it recently saw
them in player input.  The caching of recent player input for this
purpose was broken.

When save_input() evicted a line, it kept its newline.  This could
make the recent_input ring buffer fill up, which then got redirections
and execute misdiagnosed as rogue.

save_input() also screwed up when evicting one line didn't make
sufficient room for the line to be saved.  This could cause assertion
failure in forget_input().

Broken in commit 8b7d0b91, v4.3.11.
src/client/secure.c