Differences From Artifact [9ee435cd1e]:
- File misc.h — part of check-in [e84a3c910c] at 2001-08-25 12:09:23 on branch trunk — Extensive changes that _should_ fix the socket buffering problems, by ceasing to listen on input channels if the corresponding output channel isn't accepting data. Has had basic check-I-didn't-actually- break-anything-too-badly testing, but hasn't been genuinely tested in stress conditions (because concocting stress conditions is non- trivial). (user: simon size: 1269)
To Artifact [008301a75c]:
- File misc.h — part of check-in [0963d65406] at 2001-08-26 10:31:29 on branch trunk — Further tightening up in PSCP. Fixed a couple more holes whereby a malicious SCP server could have written to areas other than the ones the user requested; cleared up buffer overruns everywhere. Hopefully we now do not use arbitrary buffer limits _anywhere_. (user: simon size: 1322)
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | + + + |
#ifndef PUTTY_MISC_H
#define PUTTY_MISC_H
#include "puttymem.h"
char *dupstr(char *s);
char *dupcat(char *s1, ...);
struct bufchain_granule;
typedef struct bufchain_tag {
struct bufchain_granule *head, *tail;
int buffersize; /* current amount of buffered data */
} bufchain;
void bufchain_init(bufchain *ch);
|
| ︙ |