Page MenuHomeFreeBSD

D10377.id27413.diff
No OneTemporary

D10377.id27413.diff

Index: head/lib/libc/gen/ttyname.c
===================================================================
--- head/lib/libc/gen/ttyname.c
+++ head/lib/libc/gen/ttyname.c
@@ -61,6 +61,10 @@
{
size_t used;
+ /* Don't write off the end of a zero-length buffer. */
+ if (len < 1)
+ return (ERANGE);
+
*buf = '\0';
/* Must be a terminal. */

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 22, 4:39 AM (14 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30107922
Default Alt Text
D10377.id27413.diff (345 B)

Event Timeline