• robert.bradford's avatar
    qcms: Limit vcgt table to a maximum of 1024 entries · 4cc1320a
    robert.bradford authored
    This is a reasonable limit on the size of the vcgt to permit; this will
    prevent rogue data potentially causing an OOM situation.
    
    TEST=With test file blue-vcgt-test-color-profile-1024.icc observe that
    the vcgt data is parsed and made available through the API but with
    blue-vcgt-test-color-profile-2048.icc the vcgt is ignored.
    R=noel@chromium.org
    BUG=471749
    
    Review URL: https://codereview.chromium.org/1138473002
    
    Cr-Commit-Position: refs/heads/master@{#328966}
    4cc1320a
google.patch 59.8 KB