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] [Patch] workaround ASN1 dissector crash on win32

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


From: "Richard Riley" <richard@xxxxxxxxxxxxxxxxx>
Date: Wed, 9 Aug 2006 22:14:33 +0100

Hello,

In Windows distributions the ASN1 dissector crashes when trying to load its
type table file. The problem seems to be caused by calling fstat [in C
runtime library linked to asn1.dll] on a file handle that was returned from
eth_fopen / g_fopen [in wiretap.dll / glib.dll?] and this sort of
cross-library sharing of file handles appears to upset Windows' C runtime.

I attach a simple patch to replace the three calls to eth_fopen with
straight fopen equivalents, which means that at last I can use the extremely
useful ASN1 dissector without having to boot t'other OS. Presumably a more
long-term solution would be to provide equivalent eth_fstat / g_fstat and
eth_fclose / g_fstat functions in wiretap and glib. But I'll leave that
decision to somebody else for now...

Cheers

Richard

Attachment: asn1_win32_fix.diff
Description: Binary data

  • Prev by Date: Re: [Wireshark-dev] X11/GLX dissector
  • Next by Date: [Wireshark-dev] Firewall ACL
  • Previous by thread: [Wireshark-dev] ANSI MAP / TCAP dissector hooks
  • Next by thread: [Wireshark-dev] Firewall ACL
  • Index(es):
    • Date
    • Thread

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