Nmap Development mailing list archives
Re: AIX libdnet-stripped patch
From: Djalal Harouni <tixxdz () opendz org>
Date: Tue, 10 Jan 2012 01:59:41 +0100
On Mon, Jan 09, 2012 at 05:31:33PM -0600, Peter O'Gorman wrote:
The most important bit of the patch are the changes to libdnet-stripped/src/eth-ndd.c. Even if you apply nothing else, please apply that.
This patch against libdnet-stripped/src/eth-ndd.c contains a possible typo, please look closely at: + char bufc[60]; + int result = 0; + if (len < 60) { + memset(bufc, 0,sizeof(buf)); Third argument of memset() should be: sizeof(bufc) That write() call can write an extra zero byte, and the returned result will not reflect the number of written bytes on success. Sorry I don't know AIX, but can you please tell us why are you trying to re-write the eth_send() function ? Thanks. -- tixxdz http://opendz.org _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Re: AIX libdnet-stripped patch David Fifield (Jan 09)
- Re: AIX libdnet-stripped patch Peter O'Gorman (Jan 09)
- Re: AIX libdnet-stripped patch David Fifield (Jan 09)
- Re: AIX libdnet-stripped patch Djalal Harouni (Jan 09)
- Re: AIX libdnet-stripped patch Peter O'Gorman (Jan 10)
- <Possible follow-ups>
- Re: AIX libdnet-stripped patch Peter O'Gorman (Jan 09)
- Re: AIX libdnet-stripped patch Peter O'Gorman (Jan 13)
- Re: AIX libdnet-stripped patch Peter O'Gorman (Jan 09)