2009-02-23 Scott Violet <sky@google.com>
authordglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Feb 2009 19:35:42 +0000 (19:35 +0000)
committerdglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Feb 2009 19:35:42 +0000 (19:35 +0000)
commit9b8ebc0d5187c8d7e63b459d9a7bd0b3fa900176
treebf50b98240f7620c1a0b25d6de6decd3d00bbe6b
parent831397aa2e07bd37291a41cd57b27ebc2cfa7fac
2009-02-23  Scott Violet  <sky@google.com>

        Reviewed by Eric Seidel.

        https://bugs.webkit.org/show_bug.cgi?id=24098
        Bugs in ClipboardChromium

        Fixes the following bugs in ClipboardChromium:
        * It's possible for the extension to be empty, resulting in a bad file
          name, for example, 'foo.' or just '.'.
        * We weren't restricting the size of the file to MAX_PATH.
        * We weren't removing characters that are invalid for file system names.

        * platform/chromium/ClipboardChromium.cpp:
        (WebCore::writeImageToDataObject):
        * platform/chromium/ClipboardChromium.h:
        * platform/chromium/ClipboardChromiumLinux.cpp: Added.
        (WebCore::ClipboardChromium::validateFileName):
        * platform/chromium/ClipboardChromiumMac.cpp: Added.
        (WebCore::ClipboardChromium::validateFileName):
        * platform/chromium/ClipboardChromiumWin.cpp: Added.
        (WebCore::isInvalidFileCharacter):
        (WebCore::ClipboardChromium::validateFileName):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@41150 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/chromium/ClipboardChromium.cpp
WebCore/platform/chromium/ClipboardChromium.h
WebCore/platform/chromium/ClipboardChromiumLinux.cpp [new file with mode: 0644]
WebCore/platform/chromium/ClipboardChromiumMac.cpp [new file with mode: 0644]
WebCore/platform/chromium/ClipboardChromiumWin.cpp [new file with mode: 0644]