search for: linebuf

Displaying 10 results from an estimated 10 matches for "linebuf".

2010 Mar 06
1
ssh-keyscan bug (not really exploitable)
..., 1996 by David Mazieres <dm at lcs.mit.edu>. * @@ -99,122 +99,6 @@ typedef struct Connection { TAILQ_HEAD(conlist, Connection) tq; /* Timeout Queue */ con *fdcon; -/* - * This is just a wrapper around fgets() to make it usable. - */ - -/* Stress-test. Increase this later. */ -#define LINEBUF_SIZE 16 - -typedef struct { - char *buf; - u_int size; - int lineno; - const char *filename; - FILE *stream; - void (*errfun) (const char *,...); -} Linebuf; - -static Linebuf * -Linebuf_alloc(const char *filename, void (*errfun) (const char *,...)) -{ - Linebuf *lb; - - if (!(lb = malloc(sizeof(*l...
2001 Feb 05
3
getline
Some system have getline method. Place rename 'getline' to 'Linebuf_getline' in ssh-keyscan.c !
2008 Apr 10
2
Procmail died with Signal 11
...:19:17 mailvirtuell postfix/local[22367]: E42EF33A96: to=<root at fh-rosenheim.de>, relay=local, delay=17, delays=0.08/0.11/0/17, dsn=5.3.0, status=bounced (Command died with signal 11: "IFS=` `&& exec /usr/bin/procmail || exit 75 #Ja". Command output: procmail: Exceeded LINEBUF ) I googled the whole inet for this problem and found a lot, but no solution seems to fit my problem. most articles point on this parameter for procmailrc "Linebuf". i found out that the default value is 2048k for message header reading. i doubled this value, with no effect. but i gues...
2006 Jul 05
2
Procmail patch for dovecot delivery
...the recipient */ { static const char unkuser[]="Unknown user"; nlog(unkuser);logqnl(chp2);syslog(LOG_ERR,slogstr,unkuser,chp2); return EX_NOUSER; /* we don't handle strangers */ @@ -498,12 +513,12 @@ setuid(uid); /* make sure we have enough space */ if(linebuf<(len=strlen(chp)+strlen(lockext)+UNIQnamelen)) allocbuffers(linebuf=len,1); /* to perform the lock & delivery */ - if(writefolder(chp,(char*)0,themail.p,filled,0,1)) /* default */ + if(writefolder(chp,(char*)0,themail.p,filled,0,1,1)) /* default */ succeed=1; }...
2010 Aug 23
0
Announce: OpenSSH 5.6 released
...rootDirectory=none (bz#1564) * sftp(1): fix a memory leak in do_realpath() error path (bz#1771) * ssk-keygen(1): Standardise error messages when attempting to open private key files to include "progname: filename: error reason" (bz#1783) * Replace verbose and overflow-prone Linebuf code with read_keyfile_line() (bz#1565) * Include the user name on "subsystem request for ..." log messages * ssh(1) and sshd(8): remove hardcoded limit of 100 permitopen clauses and port forwards per direction (bz#1327) * sshd(8): ignore stderr output from subsystems to avoid...
2011 Jul 19
6
[PATCH 0/6] Move the infor for the help/man page in the source
The following series implement a way to generate the help messages and the btrfs man page from the sources comments for the "btrfs" commanda . The syntax and the detailed help of every subcommand are stored in the comments before the function which implements the subcommand. The fact that the help messages and the man page are generated from the same source should help to avoid
2010 Aug 09
8
Call for testing: OpenSSH-5.6
...ChrootDirectory=none (bz#1564) * sftp(1): fix memory leak in do_realpath() error path (bz#1771) * ssk-keygen(1): Standardise error messages when attempting to open private key files to include "progname: filename: error reason" (bz#1783) * Replace verbose and overflow-prone Linebuf code with read_keyfile_line() (bz#1565) * Include the user name on "subsystem request for ..." log messages * ssh(1) and sshd(8): remove hardcoded limit of 100 permitopen clauses and port forwards per direction (bz#1327) * sshd(8): ignore stderr output from subsystems to avoid...
2001 May 14
2
openssh-2.9p1
Hi, 1. I think you should apply the attached patch to openssh-2.9p1, otherwise ssh-keyscan on linux boxes with glibc-2.1 will experience enormous timeout delays. 2. Is there a program like ssh-keyscan for the Version2 (dsa and rsa) keys?? regards Peter Breitenlohner <peb at mppmu.mpg.de> -------------- next part -------------- diff -ur openssh-2.9p1.orig/ssh-keyscan.c
2010 Aug 23
3
Announce: OpenSSH 5.6 released
...rootDirectory=none (bz#1564) * sftp(1): fix a memory leak in do_realpath() error path (bz#1771) * ssk-keygen(1): Standardise error messages when attempting to open private key files to include "progname: filename: error reason" (bz#1783) * Replace verbose and overflow-prone Linebuf code with read_keyfile_line() (bz#1565) * Include the user name on "subsystem request for ..." log messages * ssh(1) and sshd(8): remove hardcoded limit of 100 permitopen clauses and port forwards per direction (bz#1327) * sshd(8): ignore stderr output from subsystems to avoid...
2001 Jul 27
0
Updated ssh-keyscan patch for ssh2 support
...; } @@ -452,7 +553,7 @@ c->c_status = CS_KEYS; break; case CS_KEYS: - keyprint(c->c_name, c->c_output_name, c->c_data, c->c_plen); + keyprint(c, keygrab_ssh1(c)); confree(s); return; break; @@ -520,49 +621,99 @@ nexthost(int argc, char **argv) { static Linebuf *lb; + char *fname, *tname; for (;;) { - if (!lb) { - if (argno >= argc) - return (NULL); - if (argv[argno][0] != '-') - return (argv[argno++]); - if (!strcmp(argv[argno], "--")) { + if (lb) { + char *line; + + line = Linebuf_getline(lb); + if (line) +...