Page MenuHomeFreeBSD

D61969.1795561685.diff
No OneTemporary

Authored By
Unknown
Size
599 B
Referenced Files
None
Subscribers
None

D61969.1795561685.diff

diff --git a/lib/libc/stdlib/tsearch.3 b/lib/libc/stdlib/tsearch.3
--- a/lib/libc/stdlib/tsearch.3
+++ b/lib/libc/stdlib/tsearch.3
@@ -26,7 +26,7 @@
.\"
.\" OpenBSD: tsearch.3,v 1.2 1998/06/21 22:13:49 millert Exp
.\"
-.Dd November 17, 2026
+.Dd November 23, 2026
.Dt TSEARCH 3
.Os
.Sh NAME
@@ -107,7 +107,12 @@
.Fn tsearch .
If the node to be deleted is the root of the binary search tree,
.Fa rootp
-will be adjusted.
+will be adjusted,
+and, since it has no parent,
+.Fn tdelete
+returns an unspecified
+.Pf non- Dv NULL
+pointer which must not be dereferenced.
.Pp
The
.Fn tdestroy

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 24, 11:08 PM (22 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41967399
Default Alt Text
D61969.1795561685.diff (599 B)

Event Timeline