]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 293] - out of bounds array write: Nathan Hintz
authorHarlan Stenn <stenn@ntp.org>
Sat, 20 Mar 2004 06:20:11 +0000 (01:20 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sat, 20 Mar 2004 06:20:11 +0000 (01:20 -0500)
bk: 405be29b_M-HhJUWv4ugnuMpGi77vQ

util/ntp-keygen.c

index bf8d35471bad4b0de3877b2c272ac43236fc7b2c..8ac3f359fb4ef67e0c2145a86a46b4a6721b13cb 100644 (file)
@@ -714,7 +714,7 @@ gen_md5(
                        }
                        md5key[j] = (u_char)temp;
                }
-               md5key[16] = '\0';
+               md5key[15] = '\0';
                fprintf(str, "%2d MD5 %16s      # MD5 key\n", i,
                    md5key);
        }