Endian bug in KNetwork::KIpAddress
Thiago Macieira
thiago at kde.org
Sat Jul 22 09:50:37 BST 2006
Nadeem Hasan wrote:
>There are 2 ways to fix this...
>1. Store the address in host order.
>2. Call ntohl() everytime for the address.
>
>I am not set up right now to easily fix this myself. Thiago, could you
>please take a look?
Calling ntohl should be preferred in the isClass* functions, since it
wouldn't change the address data, that other sections of code must be
using already.
I have no development environment here either. I cannot do any changes.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060722/6a26cb62/attachment.sig>
More information about the kde-core-devel
mailing list