[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

aestes at apple.com aestes at apple.com
Wed Dec 22 12:48:08 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 3d0dd7d76a0236f6911786cdbae59dfe70fcc539
Author: aestes at apple.com <aestes at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Aug 30 19:27:36 2010 +0000

    2010-08-30  Andy Estes  <aestes at apple.com>
    
            Reviewed by Eric Carlson.
    
            Strings returned by asciiDebug() should be NULL-terminated.
            https://bugs.webkit.org/show_bug.cgi?id=44866
    
            * wtf/text/WTFString.cpp:
            (asciiDebug):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66401 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index 27ea3b0..181a628 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,3 +1,13 @@
+2010-08-30  Andy Estes  <aestes at apple.com>
+
+        Reviewed by Eric Carlson.
+
+        Strings returned by asciiDebug() should be NULL-terminated.
+        https://bugs.webkit.org/show_bug.cgi?id=44866
+
+        * wtf/text/WTFString.cpp:
+        (asciiDebug):
+
 2010-08-30  Zoltan Herczeg  <zherczeg at webkit.org>
 
         Reviewed by Darin Adler.
diff --git a/JavaScriptCore/wtf/text/WTFString.cpp b/JavaScriptCore/wtf/text/WTFString.cpp
index 84b815a..a83dbba 100644
--- a/JavaScriptCore/wtf/text/WTFString.cpp
+++ b/JavaScriptCore/wtf/text/WTFString.cpp
@@ -970,11 +970,12 @@ Vector<char> asciiDebug(StringImpl* impl)
     unsigned length = impl->length();
     const UChar* characters = impl->characters();
 
-    buffer.resize(length);
+    buffer.resize(length + 1);
     for (unsigned i = 0; i < length; ++i) {
         UChar ch = characters[i];
         buffer[i] = ch && (ch < 0x20 || ch > 0x7f) ? '?' : ch;
     }
+    buffer[length] = '\0';
 
     return buffer;
 }

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list