bugGNUstep - Bugs: bug #27224, memcpy in GSMime

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #27224: memcpy in GSMime

Submitted by:  Manuel Guesdon <mguesdon>
Submitted on:  Tue 11 Aug 2009 04:08:08 PM UTC  
 
Category: Base/FoundationSeverity: 2 - Minor
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 11 Aug 2009 04:41:24 PM UTC, comment #1:

Thanks, I fixed that in svn as suggested.

Richard Frith-Macdonald <CaS>
Project Member
Tue 11 Aug 2009 04:08:08 PM UTC, original submission:

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.

Manuel Guesdon <mguesdon>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by mguesdon (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 11 Aug 2009 04:41:24 PM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1