• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Crash in AsyncSocket when scanning with nmap
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash in AsyncSocket when scanning with nmap


  • Subject: Re: Crash in AsyncSocket when scanning with nmap
  • From: "Martin Redington" <email@hidden>
  • Date: Thu, 8 Feb 2007 23:36:34 +0000

Have you checked the result CFSocketCopyPeerAddress.

doh! That looks very likely to be the cause.

It seems like when scanning with nmap, the calls to retrieve the
socket sometimes succeed and sometimes fails. In the latter case,
AsyncSocket prints an error message, but in either case, AsyncSocket
rolls on, retrieves the peer, doesn't check the return value, and then
calls the addressPort method on the peer, which always crashes in
either case.

Fixing that leaves another nmap related crasher in AsyncSocket, when a
CFStreamEvent callback gets called for the CFReadStream, and
CFReadStreamGetError is called with a NULL CFReadStream as argument.

Patching to avoid that fixes the nmap crashes completely for me so far.

  Thanks for the pointer!

     cheers,
                m.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Crash in AsyncSocket when scanning with nmap (From: "Martin Redington" <email@hidden>)

  • Prev by Date: Re: Crash in AsyncSocket when scanning with nmap
  • Next by Date: Silent Internet Connect Dialer
  • Previous by thread: Re: Crash in AsyncSocket when scanning with nmap
  • Next by thread: Silent Internet Connect Dialer
  • Index(es):
    • Date
    • Thread