[15502] in Athena Bugs

home help back first fref pref prev next nref lref last post

fix for buffer overflow in hesiod library

daemon@ATHENA.MIT.EDU (mhpower@MIT.EDU)
Mon Sep 15 01:33:47 1997

From: <mhpower@MIT.EDU>
To: bugs@MIT.EDU, sipb-athena-bugs@MIT.EDU
Date: Mon, 15 Sep 1997 01:33:44 EDT

The patch is relative to /mit/source/athena/lib/hesiod/hesiod.c

Matt

*** hesiod.c.old	Wed Feb 12 00:02:34 1997
--- hesiod.c	Mon Sep 15 01:27:28 1997
***************
*** 152,154 ****
  	
!   strcpy(bindname, name);
  
--- 152,155 ----
  	
!   strncpy(bindname, name, sizeof(bindname));
!   bindname[sizeof(bindname) - 1] = '\0';
  

home help back first fref pref prev next nref lref last post