harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r693090 - /harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c
Date Mon, 08 Sep 2008 13:30:01 GMT
Author: hindessm
Date: Mon Sep  8 06:30:00 2008
New Revision: 693090

URL: http://svn.apache.org/viewvc?rev=693090&view=rev
Log:
Make sure we use the longest of the two exe prefixes to avoid buffer overflow.

Modified:
    harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c

Modified: harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c?rev=693090&r1=693089&r2=693090&view=diff
==============================================================================
--- harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c (original)
+++ harmony/enhanced/jdktools/trunk/modules/samsa/src/main/native/samsa/samsa.c Mon Sep  8
06:30:00 2008
@@ -135,7 +135,7 @@
         return 2;
     }
     
-    fullExePath = (char *) malloc(strlen(jdkRoot) + strlen(EXE_POSTFIX) + 1);
+    fullExePath = (char *) malloc(strlen(jdkRoot) + strlen(WEXE_POSTFIX) + 1);
     
     strcpy(fullExePath, jdkRoot);
     



Mime
View raw message