[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#123015: Help with #123015 on cooledit

On Fri, Dec 28, 2001 at 11:43:42PM -0600, Taral wrote:
> I'll see if I can get a hold of my friend's debian/ppc box and look into
> this.

(gdb) run
Starting program: /usr/bin/X11/cooledit 
[New Thread 1024 (LWP 19837)]
cooledit:stringtools.c:537: vsprintf wrote out of bounds

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 19837)]
0x0fb23650 in strnlen () from /lib/libc.so.6
(gdb) bt
#0  0x0fb23650 in strnlen () from /lib/libc.so.6
#1  0x0faf4200 in vfprintf () from /lib/libc.so.6
#2  0x0fb0e890 in vsprintf () from /lib/libc.so.6
#3  0x0ff99720 in vsprintf_alloc (fmt=0xffce7b4 "_query.%.20s", ap=0x7ffff380)
    at stringtools.c:528
#4  0x0ff997f8 in sprintf_alloc (fmt=0x1 <Address 0x1 out of bounds>)
    at stringtools.c:546
#5  0x0ff71f98 in CQueryDialog (in=0, x=4, y=29, 
    heading=0x7ffff570 "\020\t\237`\020\t\233\230", first=0xffce710 "")
    at dialog.c:595
#6  0x1000b0fc in read_config () at cooledit.c:1406
#7  0x1000d444 in main (argc=1, argv=0x7ffffc64) at cooledit.c:2116
#8  0x0fac1a30 in __libc_start_main () from /lib/libc.so.6

Something fishy here... the "vsprintf wrote out of bounds" is certainly
not encouraging.

The whole stringtools thing smells a little hackish to me -- I'd prefer
just to change the code to use the vasprintf stuff in glibc.

Taral <taral@taral.net>
This message is digitally signed. Please PGP encrypt mail to me.
"Any technology, no matter how primitive, is magic to those who don't
understand it." -- Florence Ambrose

Attachment: pgpVeFs0aaUd0.pgp
Description: PGP signature

Reply to: