[llvm-commits] [test-suite] r54390 - /test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-pc1/pc1cod.c
Dale Johannesen
dalej at apple.com
Tue Aug 5 17:12:02 PDT 2008
Author: johannes
Date: Tue Aug 5 19:12:01 2008
New Revision: 54390
URL: http://llvm.org/viewvc/llvm-project?rev=54390&view=rev
Log:
Fix source bug: write off end of array.
Modified:
test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-pc1/pc1cod.c
Modified: test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-pc1/pc1cod.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-pc1/pc1cod.c?rev=54390&r1=54389&r2=54390&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-pc1/pc1cod.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-pc1/pc1cod.c Tue Aug 5 19:12:01 2008
@@ -260,7 +260,7 @@
/* if the user enter a key < 32 characters, characters of the default */
/* password will be used */
- strcpy(cle, "abcdefghijklmnopqrstuvwxyz012345");
+ memcpy(cle, "abcdefghijklmnopqrstuvwxyz012345", 32);
printf("PC1 Cipher 256 bits \nENCRYPT file IN.BIN to OUT.BIN\n");
More information about the llvm-commits
mailing list