[2650] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5-clients/359: rcp -x minor bug

daemon@ATHENA.MIT.EDU (Andrew Hobson)
Wed Jan 29 19:54:53 1997

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: krb5-unassigned@RT-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, ahobson@mindspring.com
Date: Wed, 29 Jan 1997 19:52:10 -0500 (EST)
From: Andrew Hobson <ahobson@mindspring.com>
Reply-To: ahobson@mindspring.com
To: krb5-bugs@MIT.EDU


>Number:         359
>Category:       krb5-clients
>Synopsis:       rcp -x file1 file2 non-existantfile core dumps
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    krb5-unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Wed Jan 29 19:53:01 EST 1997
>Last-Modified:
>Originator:     Andrew Hobson
>Organization:
MindSpring Enterprises
>Release:        1.0
>Environment:
        FreeBSD 2.2_BETA.  PPro 200MHz.  
System: FreeBSD computer.mindspring.com 2.2-BETA_A FreeBSD 2.2-BETA_A #0: Sun Dec 29 13:36:58 EST 1996 root@computer.mindspring.com:/usr/src/sys/compile/COMPUTER i386


>Description:
$ rcp -x .zprofile .zshrc b
 zsh: segmentation fault (core dumped)  rcp -x .zprofile .zshrc b

 (gdb) bt
 #0  0x4688 in des_write (fd=-1, 
     buf=0xefbfb640 "\001rcp: b: No such file or directory.\n", len=36)
     at krcp.c:1442
 #1  0xefbfd758 in end ()
 #2  0x3d9b in error (fmt=0x2702 "") at krcp.c:1173
 #3  0x2765 in verifydir (cp=0xefbfd805 "b") at krcp.c:609
 #4  0x22dd in main (argc=3, argv=0xefbfd764) at krcp.c:465
 
 Note that the coredump only happens when encryption is turned on.

>How-To-Repeat:
            rcp -x file1 file2 non-existantfile core dumps
>Fix:
 The global variable rem is -1 and des_write assumes a valid file
 descriptor.  I'm not supplying a patch because I don't know where to
 put the check for rem == -1.
>Audit-Trail:
>Unformatted:

home help back first fref pref prev next nref lref last post