Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: [Wireshark-dev] intense EP memory corruption checks

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: "Luis EG Ontanon" <luis@xxxxxxxxxxx>
Date: Tue, 5 Aug 2008 19:59:30 +0200

Hi folks,

Last night I checked in a patch to emem.[ch] and packet.c to enable
intense checking of EP canaries.

Diverselly to the current checks done only once EP memory is being
yield. With this one compiled in, if the env var
WIRESHARK_DEBUG_EP_CANARY exists, it performs the canary check in
several places in packet.c (before and after calling dissectors),
which allows to better pinpoint the corrupter and probably still have
it on the stack when it aborts.

Other than that the EP_CHECK_CANARY() macro allows to easily add further checks.

If compiled in and WIRESHARK_DEBUG_EP_CANARY is not in the env, the
funtion doing the check will return immediately, not checking the
canaries, thus not impating performance that much.

My Question is:
  Should this "feature" be compiled by default if canaries are used?
Or just left there for the developer to use when deemed necessary.

BR
\Lego


-- 
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan

  • Prev by Date: Re: [Wireshark-dev] Terminating NULL chraracter in RTCP Byereason string
  • Next by Date: Re: [Wireshark-dev] performing cpu/time intensive computation in a protocol dissector
  • Previous by thread: Re: [Wireshark-dev] Windows build environment changes
  • Next by thread: [Wireshark-dev] Field reg
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation