Reviewers: rmcilroy,

Message:
Please take a look.

Description:
Fix external snapshot serialization by null-terminating strings

Please review this at https://codereview.chromium.org/496253003/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+1, -0 lines):
  M tools/js2c.py


Index: tools/js2c.py
diff --git a/tools/js2c.py b/tools/js2c.py
index 77485f6e22f5f698cbf7632c3fd7a3972ee6d2c2..e9ebb56e8131ebcb39e52e2db732472f5ff72601 100755
--- a/tools/js2c.py
+++ b/tools/js2c.py
@@ -510,6 +510,7 @@ def PutInt(blob_file, value):


 def PutStr(blob_file, value):
+  value += '\0'
   PutInt(blob_file, len(value));
   blob_file.write(value);



--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to