bug-gnustep
[Top][All Lists]
Advanced

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

PATCH: incorrect memcpy use


From: Andrew Ruder
Subject: PATCH: incorrect memcpy use
Date: Mon, 12 Jul 2004 23:41:47 -0500
User-agent: Mozilla Thunderbird 0.7.1 (X11/20040626)

Hello all,

Valgrind was complaining about some problems with memcpy and overlapping memory addresses in NSSocketPort.m. Looking a bit closer I think that all the memcpy's need to be replaced with memmove's in NSSocketPort.m and NSMessagePort.m since more than one event could be received at a time and the use of memcpy seems to suggest that that couldn't happen.

See what you think, and please apply.

Thanks,
Andrew Ruder

Attachment: portpatch.diff.gz
Description: GNU Zip compressed data


reply via email to

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