2014-01-31  Sharath Kamath  <s.kamath@samsung.com>

        Host pointer must not be checked against the offset.

        Issue #439

        Currently we check both buffer and hostPtr for length
        against offset + region being read/written.
        But hostPtr only needs to be checked against region being read/written.

        Reviewed by Antonio.

        Conformance test cases:
        conformance/bindingTesting/queues/*

        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::enqueueWriteBufferBase):
        (WebCore::WebCLCommandQueue::enqueueWriteBufferRectBase):
        (WebCore::WebCLCommandQueue::enqueueReadBufferBase):
        (WebCore::WebCLCommandQueue::enqueueReadImageBase):
        (WebCore::WebCLCommandQueue::enqueueReadBufferRectBase):
        (WebCore::WebCLCommandQueue::enqueueWriteImageBase):
        * Modules/webcl/WebCLInputChecker.cpp:
        (WebCore::WebCLInputChecker::isValidRegionForMemoryObject):
        (WebCore::WebCLInputChecker::isValidRegionForHostPtr):
        * Modules/webcl/WebCLInputChecker.h: