harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r636721 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/stack_dump_platf.cpp
Date Thu, 13 Mar 2008 11:35:43 GMT
Author: hindessm
Date: Thu Mar 13 04:35:41 2008
New Revision: 636721

URL: http://svn.apache.org/viewvc?rev=636721&view=rev
Log:
Fix potential memory corruption.

Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/stack_dump_platf.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/stack_dump_platf.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/stack_dump_platf.cpp?rev=636721&r1=636720&r2=636721&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/stack_dump_platf.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/stack_dump_platf.cpp Thu Mar 13
04:35:41 2008
@@ -242,7 +242,7 @@
             g_cmdline = cmd;
             if (cmd)
             {
-                cmd[size + 1] = '\0';
+                cmd[size] = '\0';
                 lseek(file, 0, SEEK_SET);
                 read(file, cmd, size);
             }



Mime
View raw message