Nmap Development mailing list archives

Re: [NSE patch] patch for pack/unpack to use platform independant types


From: "Philip Pickering" <pgpickering () gmail com>
Date: Thu, 14 Aug 2008 20:57:28 +0200

Hi!

Thanks a lot, especially for also updating the documentation.
Yes, it will be applied in the next couple of days.


cheers,
Philip


2008/8/14 Sven Klemm <sven () c3d2 de>:
Hi,

I've enhanced the patch to also update the documentation. Currently
unpack/pack produces different results on 32-bit linux than on 64-bit linux
because platform dependant types like int,long and size_t are used. The byte
size of these types is used to determine the number of bytes used when
packing/unpacking. So any scripts using the library will most likely not be
crossplatform. The attached patch uses platform independant datatypes
defined by nbase for pack/unpack which fixes the issue.

Any chance this is getting applied?

Cheers,
Sven

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: