]> andersk Git - openssh.git/commitdiff
Fix segfault
authordamien <damien>
Sat, 20 Nov 1999 06:02:56 +0000 (06:02 +0000)
committerdamien <damien>
Sat, 20 Nov 1999 06:02:56 +0000 (06:02 +0000)
ChangeLog
ssh-keygen.c

index 0bf1a55756ca6dff6df4c472e9e6ee858dfaee87..69a477ec724d693a0ced80fb2f42cd2c3406a15c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
    <marc.fournier@acadiau.ca>
  - Wrote autoconf tests for integer bit-types
  - Fixed enabling kerberos support
+ - Fix segfault in ssh-keygen caused by buffer overrun in filename 
+   handling.
 
 19991119
  - Merged PAM buffer overrun patch from Chip Salzenberg <chip@valinux.com>
index b1baeced11b598a3b6d29ba4f487377de36f6f1c..5413ba6c3c3f15fa06584d7401a5088fc055bfd7 100644 (file)
@@ -570,6 +570,7 @@ main(int ac, char **av)
 
   /* Save the public key in text format in a file with the same name but
      .pub appended. */
+  file = xrealloc(file, strlen(file) + 5);
   strcat(file, ".pub");
   f = fopen(file, "w");
   if (!f)
This page took 0.040442 seconds and 5 git commands to generate.