summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-05-22 21:40:08 +0000
committerimp <imp@FreeBSD.org>1997-05-22 21:40:08 +0000
commitb830d50b017d35f3a9a2ded7a6458aac70c3f037 (patch)
tree6ede98116b34b9e260461c9a5244855bb3cf21d8 /gnu
parentf7e2203cd30e851b7736195980e98a18fdd3bc33 (diff)
downloadFreeBSD-src-b830d50b017d35f3a9a2ded7a6458aac70c3f037.zip
FreeBSD-src-b830d50b017d35f3a9a2ded7a6458aac70c3f037.tar.gz
Fix buffer overload that might lead to root.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/perl/perl/stab.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/usr.bin/perl/perl/stab.c b/gnu/usr.bin/perl/perl/stab.c
index e34aa94..6edb599 100644
--- a/gnu/usr.bin/perl/perl/stab.c
+++ b/gnu/usr.bin/perl/perl/stab.c
@@ -1,4 +1,4 @@
-/* $RCSfile: stab.c,v $$Revision: 1.1.1.1 $$Date: 1994/09/10 06:27:33 $
+/* $RCSfile: stab.c,v $$Revision: 1.2 $$Date: 1995/05/30 05:03:19 $
*
* Copyright (c) 1991, Larry Wall
*
@@ -6,6 +6,9 @@
* License or the Artistic License, as specified in the README file.
*
* $Log: stab.c,v $
+ * Revision 1.2 1995/05/30 05:03:19 rgrimes
+ * Remove trailing whitespace.
+ *
* Revision 1.1.1.1 1994/09/10 06:27:33 gclarkii
* Initial import of Perl 4.046 bmaked
*
@@ -817,7 +820,7 @@ char *name;
char tmpbuf[1200];
STAB *stab;
- sprintf(tmpbuf,"'_<%s", name);
+ snprintf(tmpbuf,sizeof(tmpbuf), "'_<%s", name);
stab = stabent(tmpbuf, TRUE);
str_set(stab_val(stab), name);
if (perldb)
OpenPOWER on IntegriCloud