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

zherczeg at webkit.org zherczeg at webkit.org
Wed Dec 22 11:48:38 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit ae23f28fa42bde4b2129f018343c6fdf45b925b8
Author: zherczeg at webkit.org <zherczeg at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Sat Aug 7 17:34:19 2010 +0000

    Bitmap.h has no default constructor
    https://bugs.webkit.org/show_bug.cgi?id=43619
    
    Reviewed by Eric Seidel.
    
    Without a constructor, the initial bits of the Bitmap class
    are undefinied. If only a few, or zero bits are 0, the memory
    area provided by AlignedMemoryAllocator can be easly exhausted.
    
    Csaba Osztrogonác helped to find this bug.
    
    * wtf/Bitmap.h:
    (WTF::::Bitmap):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64912 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index a41f366..16162aa 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,3 +1,19 @@
+2010-08-07  Zoltan Herczeg  <zherczeg at webkit.org>
+
+        Reviewed by Eric Seidel.
+
+        Bitmap.h has no default constructor
+        https://bugs.webkit.org/show_bug.cgi?id=43619
+
+        Without a constructor, the initial bits of the Bitmap class
+        are undefinied. If only a few, or zero bits are 0, the memory
+        area provided by AlignedMemoryAllocator can be easly exhausted.
+
+        Csaba Osztrogonác helped to find this bug.
+
+        * wtf/Bitmap.h:
+        (WTF::::Bitmap):
+
 2010-08-06  Rafael Antognolli  <antognolli at profusion.mobi>
 
         [EFL] Build fix.
diff --git a/JavaScriptCore/wtf/Bitmap.h b/JavaScriptCore/wtf/Bitmap.h
index b9a5cd6..4dd88f6 100644
--- a/JavaScriptCore/wtf/Bitmap.h
+++ b/JavaScriptCore/wtf/Bitmap.h
@@ -32,6 +32,8 @@ private:
     typedef uint32_t WordType;
 
 public:
+    Bitmap();
+
     bool get(size_t) const;
     void set(size_t);
     void clear(size_t);
@@ -56,6 +58,12 @@ private:
 };
 
 template<size_t size>
+inline Bitmap<size>::Bitmap()
+{
+    clearAll();
+}
+
+template<size_t size>
 inline bool Bitmap<size>::get(size_t n) const
 {
     return !!(bits[n / wordSize] & (one << (n % wordSize)));

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list