2014-02-20  Sharath Kamath  <s.kamath@samsung.com>

        [Part -1 ] Add validation for pitchValues in equeue* API's

        Issue #453

        Reviewed by Antonio.

        Adding check for validating row & slice pitch values sent by user into isValidRegionForMemoryObject().
        This commit takes only the enqueue*Rect API's.

        Testing is done to validate if the read/write goes out of bound for the
        buffer/hostPtr. In that case some OpenCL drivers throw exception and some
        dont (sometimes causing crashes).

        conformance/bindingTesting/queues/cl_commandQueue_enqueueCopyBufferRect.html
        conformance/bindingTesting/queues/cl_commandQueue_enqueueReadBufferRect.html
        conformance/bindingTesting/queues/cl_commandQueue_enqueueWriteBufferRect.html
        conformance/functionalityTesting/enqueueOperations/bufferRectOperations.html

        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::enqueueWriteBufferRectBase):
        (WebCore::WebCLCommandQueue::enqueueReadBufferRectBase):
        * Modules/webcl/WebCLInputChecker.cpp:
        (WebCore::WebCLInputChecker::isValidRegionForMemoryObject):