[Xapian-tickets] [Xapian] #665: Avoid C library functions not guaranteed to be thread-safe

Xapian nobody at xapian.org
Fri Oct 25 23:26:21 BST 2019


#665: Avoid C library functions not guaranteed to be thread-safe
-------------------------+--------------------------
 Reporter:  olly         |             Owner:  olly
     Type:  defect       |            Status:  new
 Priority:  normal       |         Milestone:  1.4.x
Component:  Library API  |           Version:  1.3.2
 Severity:  normal       |        Resolution:
 Keywords:               |        Blocked By:
 Blocking:               |  Operating System:  All
-------------------------+--------------------------

Comment (by olly):

 I hadn't considered we could unpoison things - that might work.

 Another option that might work is to have a `#ifdef XAPIAN_NO_POISON` or
 similar around them in `config.h`, and just define that before `#include
 <config.h>` where we want to whitelist.

 I agree we only '''need''' to catch this in CI, but it's more helpful to
 people submitting patches and using clang to have this flagged during
 early development rather than only after they've submitted a patch.

--
Ticket URL: <https://trac.xapian.org/ticket/665#comment:11>
Xapian <https://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list