public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] off by one error in nis-publickey
@ 2005-10-28 12:56 Thorsten Kukuk
  2005-10-28 22:45 ` Ulrich Drepper
  0 siblings, 1 reply; 3+ messages in thread
From: Thorsten Kukuk @ 2005-10-28 12:56 UTC (permalink / raw)
  To: libc-hacker


Hi,

there is a off by one error in nis-publickey:

2005-10-28  Thorsten Kukuk  <kukuk@suse.de>

	* nis/nss_nis/nis-publickey.c(_nss_nis_getpublickey): fix off
	by one error.

--- nis/nss_nis/nis-publickey.c	26 Aug 2002 06:20:04 -0000	1.13
+++ nis/nss_nis/nis-publickey.c	28 Oct 2005 12:53:02 -0000
@@ -120,7 +120,7 @@
 
       ++p;
       strncpy (buf, p, 2 * (HEXKEYBYTES + 1));
-      buf[2 * (HEXKEYBYTES + 1)] = '\0';
+      buf[2 * HEXKEYBYTES + 1] = '\0';
       if (!xdecrypt (buf, passwd))
 	return NSS_STATUS_SUCCESS;
 

-- 
Thorsten Kukuk         http://www.suse.de/~kukuk/      kukuk@suse.de
SUSE LINUX Products GmbH       Maxfeldstr. 5       D-90409 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-30 14:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-28 12:56 [PATCH] off by one error in nis-publickey Thorsten Kukuk
2005-10-28 22:45 ` Ulrich Drepper
2005-10-30 14:48   ` Thorsten Kukuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).