Changeset 74148 in webkit


Ignore:
Timestamp:
Dec 15, 2010 3:26:40 PM (13 years ago)
Author:
mdelaney@apple.com
Message:

2010-12-15 Matthew Delaney <mdelaney@apple.com>

Reviewed by Simon Fraser.

IOSurface bounds checks on bytesPerRow and allocSize are incorrect
https://bugs.webkit.org/show_bug.cgi?id=51137

No new tests added. For those using this new functionality, many current canvas layout tests will now pass.

  • platform/graphics/cg/ImageBufferCG.cpp:
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r74147 r74148  
     12010-12-15  Matthew Delaney  <mdelaney@apple.com>
     2
     3        Reviewed by Simon Fraser.
     4
     5        IOSurface bounds checks on bytesPerRow and allocSize are incorrect
     6        https://bugs.webkit.org/show_bug.cgi?id=51137
     7
     8        No new tests added. For those using this new functionality, many current canvas layout tests will now pass.
     9
     10        * platform/graphics/cg/ImageBufferCG.cpp:
     11
    1122010-12-15  Kenneth Russell  <kbr@google.com>
    213
  • trunk/WebCore/platform/graphics/cg/ImageBufferCG.cpp

    r73949 r74148  
    6464
    6565    unsigned long bytesPerRow = IOSurfaceAlignProperty(kIOSurfaceBytesPerRow, size.width() * bytesPerElement);
    66     if (!bytesPerRow || bytesPerRow != (size.width() * bytesPerElement))
     66    if (!bytesPerRow)
    6767        return 0;
    6868
    6969    unsigned long allocSize = IOSurfaceAlignProperty(kIOSurfaceAllocSize, size.height() * bytesPerRow);
    70     if (!allocSize || allocSize != (size.height() * bytesPerRow))
     70    if (!allocSize)
    7171        return 0;
    7272
Note: See TracChangeset for help on using the changeset viewer.