
kyle-qmail at memoryhole
Apr 8, 2013, 8:34 AM
Post #6 of 9
(284 views)
Permalink
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Monday, April 8 at 11:12 AM, quoth Michael Sierchio: > On Mon, Apr 8, 2013 at 11:01 AM, Kyle Wheeler <kyle-qmail [at] memoryhole> wrote: >> -----BEGIN PGP SIGNED MESSAGE----- > >> I believe the CDB database format is not fully cross-platform > > Really? I'm convinced that the database format is fixed, > cross-platform, etc. etc. > > quote> Positions, lengths, and hash values are 32-bit quantities, stored in > quote> little-endian form in 4 bytes. > > I think you should look elsewhere. AAAAnd if you actually read the *code* of DJB's CDB software, it defines "32-bit unsigned integer" as "unsigned int" (see uint32.h), which on machines that use the ILP64 data model, is actually a 64-bit integer. This is a consequence of using software that pre-dates the establishment of the uint32_t datatype: it's darn hard to create an integer of a specific (large-ish) size in a portable way. You can consider that a bug in his software if you like; it certainly means it can violate the CDB spec on some machines with some compilers. But, whether this is the issue or not, it can't hurt to give my suggestion a shot. ~Kyle - -- The important work of moving the world forward does not wait to be done by perfect men. -- George Eliot -----BEGIN PGP SIGNATURE----- Comment: Thank you for using encryption! iQIcBAEBCAAGBQJRYuOgAAoJECuveozR/AWeWn8QAIlbWiK3vVRHXJKUGbrZuTW/ LNqHa2fLYVf/nxt1cOpmyZnkZt2iURskfgsjhtpPCYJZathAT8tDDKtIMcrIWOtr dC+CJICstMFIZ7pZIdXeb2wyDVBUGPxyPToeKUlK7L6q43bsouBanN03tIuHWvfP 8og2zFt4uQMNOktVxSdQzvgW/na2yP4RrMJM/6MAL+6QLW5pGOD50yb1GxM1uyuh NeR2/Q5SN8AH0JzipGg7gagNfagxheagQbM67Mtcm7VfWeyWP+DOFefB+f66Kb+4 XOHyJuttjgOgxEuKxT5PsMmTUtXWb57wpww350U2lGIXXPDsIvC2ZD6Avt4RWFw1 J3RJPXo2QbMdq/vFmBFgCgHUuAsM+sc1ZbCWZx+LHPDzzavtMp2MZML4OGklx4Fb 6ncSnossmK4qJDwEBW7NP1TN1rijtbucY8wznnnI4x+UwriNcIHLVt/afMqgjYrk IODCAiTPM/UUfzwcz1EpAz5qAsKTsmNB49La9hMVgJBwVMT/lBeylMZFIODUMRTz AojvleaUPft6d7ehg6ZHIdDjnF1MTfqd2QH3aG7x0gdvSb1wH5MFLJEM0uwA65om AMPFvmTDv9Fz63TpPshkj0w9cfbMf3+CnJn4rl3vyvpqocKrdHM6BWO4nuQUFAgM cF1AUb86Fr4/sIDx80MJ =806P -----END PGP SIGNATURE-----
|