[Xapian-tickets] [Xapian] #665: Avoid C library functions not guaranteed to be thread-safe
Xapian
nobody at xapian.org
Tue Dec 5 04:34:11 GMT 2023
#665: Avoid C library functions not guaranteed to be thread-safe
-------------------------+-------------------------------
Reporter: Olly Betts | Owner: Olly Betts
Type: defect | Status: assigned
Priority: highest | Milestone: 1.5.0
Component: Library API | Version: git master
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: All
-------------------------+-------------------------------
Changes (by Olly Betts):
* priority: normal => highest
Comment:
OK, let's use `std::from_chars()` where it supports `double` and postpone
the rest. With a suitable platform and toolchain that means only
`getenv()` is a concern (and it seems perhaps it's fine on many platforms,
it's just that POSIX allows it to return its value in a static buffer; or
possibly concurrent `setenv()` might be problematic too?)
--
Ticket URL: <https://trac.xapian.org/ticket/665#comment:21>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list