1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-05 21:42:47 -05:00

from_backend() should always be called with len > 0. Only rlogin

mode ever failed to do this, and only Plink actually had a problem
with it, so this didn't become obvious for a while. rlogin mode is
fixed, and all implementations of from_backend() now contain an
assertion so that we should spot errors of this type more quickly in
future.

[originally from svn r1571]
This commit is contained in:
Simon Tatham
2002-03-01 13:17:45 +00:00
parent 0b61ac21c2
commit fdbd697801
5 changed files with 11 additions and 1 deletions

2
scp.c
View File

@ -268,6 +268,8 @@ int from_backend(int is_stderr, char *data, int datalen)
unsigned char *p = (unsigned char *) data;
unsigned len = (unsigned) datalen;
assert(len > 0);
/*
* stderr data is just spouted to local stderr and otherwise
* ignored.