bug-gnustep
[Top][All Lists]
Advanced

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

[bug #27224] memcpy in GSMime


From: Manuel Guesdon
Subject: [bug #27224] memcpy in GSMime
Date: Tue, 11 Aug 2009 16:08:09 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5

URL:
  <http://savannah.gnu.org/bugs/?27224>

                 Summary: memcpy in GSMime
                 Project: GNUstep
            Submitted by: mguesdon
            Submitted on: mar 11 aoû 2009 18:08:08 CEST
                Category: Base/Foundation
                Severity: 2 - Minor
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

valgrind raise an alert "Source and destination overlap in memcpy" on
GSMime.m around line 2821:  
   memcpy(bytes, &bytes[input], lengthRemaining);

I think it's better to use memmove for this operation, and for all
memcpy(bytes, &bytes...) operations.









    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27224>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]