Displaying 2 results from an estimated 2 matches for "_io_fgets".
2000 Aug 02
1
load_private_key hell
...d openssl code) without
changing in->ex_data->dummy. Then I single instruction step all the way
through PEM_read_bio_DSAPrivateKey and I find something really odd. Deep
in the middle of some library with no debuging info I get a big difference
between ssh and my test program. In ssh I get:
_IO_fgets (buf=0xbffff0bc "", n=1, fp=0x6) at iofgets.c:34
34 in iofgets.c
which looks ok. But in my program I get:
_IO_fgets (buf=0x5 <Address 0x5 out of bounds>, n=5, fp=0xa544156)
at iofgets.c:34
34 in iofgets.c
Which is obviously broken, and it looks like somehow buf and fp...
2000 Dec 12
1
openssh 2.3.0p1 crashes
...f=0xbfffe834 "?\e\017\b?\e\017\b(", n=1023, delim=10, extract_delim=1, eof=0x0)
at ../sysdeps/i386/i486/bits/string.h:435
#1 0x400bf87d in _IO_getline (fp=0x80de3d0, buf=0xbfffe834 "?\e\017\b?\e\017\b(", n=1023, delim=10, extract_delim=1) at iogetline.c:39
#2 0x400be938 in _IO_fgets (buf=0xbfffe834 "?\e\017\b?\e\017\b(", n=1024, fp=0x80de3d0) at iofgets.c:48
#3 0x804de09 in _start ()
#4 0x804e1f9 in _start ()
#5 0x804efb5 in _start ()
#6 0x804e4bd in _start ()
#7 0x804cb84 in _start ()
(gdb) quit
strace says:
[...]
3295 write(2, "Waiting for server publi...