Wireshark-commits: [Wireshark-commits] rev 30579: /trunk/epan/ /trunk/epan/: emem.c

Date: Fri, 16 Oct 2009 21:36:45 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=30579

User: morriss
Date: 2009/10/16 02:36 PM

Log:
 Introduce an optional (ep_ and se_) memory scrubber.  When activated (export
 WIRESHARK_DEBUG_SCRUB_MEMORY to turn it on) this function initializes all
 allocated memory to 0xBADDCAFE and all freed memory to 0xDEADBEEF.  (Of course
 the allocation functions like ep_alloc0() re-initialize the allocated memory
 back to 0.)

Directory: /trunk/epan/
  Changes    Path          Action
  +86 -20    emem.c        Modified