[Fedora-i18n-bugs] [Bug 579610] New: wrong usage of strcpy in parsing command line

bugzilla at redhat.com bugzilla at redhat.com
Tue Apr 6 03:31:24 UTC 2010


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: wrong usage of strcpy in parsing command line

https://bugzilla.redhat.com/show_bug.cgi?id=579610

           Summary: wrong usage of strcpy in parsing command line
           Product: Fedora
           Version: rawhide
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: medium
          Priority: low
         Component: eblook
        AssignedTo: petersen at redhat.com
        ReportedBy: ueno at unixuser.org
         QAContact: extras-qa at fedoraproject.org
                CC: petersen at redhat.com, i18n-bugs at lists.fedoraproject.org
   Estimated Hours: 0.0
    Classification: Fedora


Created an attachment (id=404590)
 --> (https://bugzilla.redhat.com/attachment.cgi?id=404590)
patch to fix wrong usage of strcpy

eblook.c:parse_command_line() uses strcpy on overlapped memory areas.  This may
corrupt the original command line arguments.  Actually, the following eblook
command is not parsed correctly on my environment F-13 (x86-64) with eblook
version 1.6.1-6.

 $ eblook
 Warning: you should specify a book directory first

 eblook> set prompt "eblook> "
 eblook  show prompt
 eblook  
 eblook  

Of course, the line after "eblook> set prompt..." should start with "eblook> "
not "eblook  ".

I'll notify the upstream, but the patch is attached.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the i18n-bugs mailing list