From dfa0a7c7269f919d172f23d44a94929ee116daa4 Mon Sep 17 00:00:00 2001 From: pgoyette Date: Wed, 7 Dec 2016 03:22:14 +0000 Subject: [PATCH] Update BUGS section to note the possibility of a truncated return value. --- lib/libc/net/linkaddr.3 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/libc/net/linkaddr.3 b/lib/libc/net/linkaddr.3 index d0f590dff2f5..7359e3cd968c 100644 --- a/lib/libc/net/linkaddr.3 +++ b/lib/libc/net/linkaddr.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: linkaddr.3,v 1.10 2003/08/07 16:43:11 agc Exp $ +.\" $NetBSD: linkaddr.3,v 1.11 2016/12/07 03:22:14 pgoyette Exp $ .\" .\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. @@ -32,7 +32,7 @@ .\" .\" @(#)linkaddr.3 8.1 (Berkeley) 7/28/93 .\" -.Dd July 28, 1993 +.Dd December 7, 2016 .Dt LINK_ADDR 3 .Os .Sh NAME @@ -115,6 +115,10 @@ functions appeared in The returned values for .Fn link_ntoa reside in a static memory area. +If the returned value would overflow this area, +.Fn link_ntoa +truncates the returned string. +There is no provision for detecting a truncated return value. .Pp The function .Fn link_addr