A NOTE has been added to this issue. ====================================================================== https://www.austingroupbugs.net/view.php?id=1937 ====================================================================== Reported By: dalias Assigned To: ====================================================================== Project: 1003.1(2024)/Issue8 Issue ID: 1937 Category: System Interfaces Type: Error Severity: Editorial Priority: normal Status: New Name: Rich Felker Organization: musl libc User Reference: Section: tsearch Page Number: unknown Line Number: unknown Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2025-07-21 16:02 UTC Last Modified: 2025-07-22 10:01 UTC ====================================================================== Summary: Undefined behavior in tsearch EXAMPLES text ======================================================================
---------------------------------------------------------------------- (0007227) geoffclare (manager) - 2025-07-22 10:01 https://www.austingroupbugs.net/view.php?id=1937#c7227 ---------------------------------------------------------------------- The fourth use is not quite the same as it involves const. Given<pre>const posix_tnode *ptr</pre>is this right:<pre>const struct element *p = (const struct element *)*(void **) ptr;</pre>or should there be a const somewhere in the (void **) as well? Issue History Date Modified Username Field Change ====================================================================== 2025-07-21 16:02 dalias New Issue 2025-07-21 16:04 dalias Note Added: 0007225 2025-07-21 22:48 dalias Note Added: 0007226 2025-07-22 09:26 geoffclare Project 1003.1(2016/18)/Issue7+TC2 => 1003.1(2024)/Issue8 2025-07-22 10:01 geoffclare Note Added: 0007227 ======================================================================
