Wireshark mailing list archives
r30680 comment about memcpy
From: Jakub Zawadzki <darkjames () darkjames ath cx>
Date: Sat, 24 Oct 2009 12:35:35 +0200
Hi, now in emem_scrub_memory() there are two comments which deny themselves, one that we don't need to align pointer, and second that we need :) I don't know when using chunks (if glib allocator is used) memory is aligned. I believe it's true on glibc system. But mmap() always return aligned pointer, and we always align size in emem_alloc_chunk() so I believe it's ok at least in unix world. Regards ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- r30680 comment about memcpy Jakub Zawadzki (Oct 24)