[Xapian-tickets] [Xapian] #303: UUID functions missing on Windows
Xapian
nobody at xapian.org
Thu Oct 16 02:05:01 BST 2008
#303: UUID functions missing on Windows
-------------------------------+--------------------------------------------
Reporter: charliejuggler | Owner: richard
Type: defect | Status: assigned
Priority: normal | Milestone: 1.0.9
Component: Backend-Flint | Version: SVN HEAD
Severity: normal | Resolution:
Keywords: | Blockedby:
Platform: Microsoft Windows | Blocking:
-------------------------------+--------------------------------------------
Comment(by olly):
OK, the bug in the patch is that you're taking the address of uuid_t in
various places.
But uuid_t is an array type, so decays to a pointer, so e.g. memset(&uu,
0, 16) blats a pointer to uu (plus another 12 random bytes) rather than
zeroing uu itself...
I also notice the function prototypes don't actually match those in uuid.h
(some "const" missing).
--
Ticket URL: <http://trac.xapian.org/ticket/303#comment:4>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list