ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [Ethereal-dev] Canary checking added to emem.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Tue, 10 Jan 2006 01:03:06 -0800
Gerald Combs wrote:
I just checked in a change to emem.c that adds canary values after each
memory allocation.

Unfortunately, it also breaks the compile with MSVC++ (it doesn't allow adding constants to "void *"s - that's a GCCism; I've checked in a fix), and warns about open() and read() - Windows doesn't have "/dev/urandom" (and not all UN*Xes have it, either, although all the UN*Xes in the buildbot might), so that code won't work in any case.