Changeset 64912 in webkit


Ignore:
Timestamp:
Aug 7, 2010 10:34:19 AM (14 years ago)
Author:
zherczeg@webkit.org
Message:

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):

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r64866 r64912  
     12010-08-07  Zoltan Herczeg  <zherczeg@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Bitmap.h has no default constructor
     6        https://bugs.webkit.org/show_bug.cgi?id=43619
     7
     8        Without a constructor, the initial bits of the Bitmap class
     9        are undefinied. If only a few, or zero bits are 0, the memory
     10        area provided by AlignedMemoryAllocator can be easly exhausted.
     11
     12        Csaba Osztrogonác helped to find this bug.
     13
     14        * wtf/Bitmap.h:
     15        (WTF::::Bitmap):
     16
    1172010-08-06  Rafael Antognolli  <antognolli@profusion.mobi>
    218
  • trunk/JavaScriptCore/wtf/Bitmap.h

    r64627 r64912  
    3333
    3434public:
     35    Bitmap();
     36
    3537    bool get(size_t) const;
    3638    void set(size_t);
     
    5557    FixedArray<WordType, words> bits;
    5658};
     59
     60template<size_t size>
     61inline Bitmap<size>::Bitmap()
     62{
     63    clearAll();
     64}
    5765
    5866template<size_t size>
Note: See TracChangeset for help on using the changeset viewer.