GravatarCommit : 0d877add3e5990db006d076dd1a2b0ea574f4b16 [0d877ad]
Parents: 71d6b00c57
Auteur : Sharath Kamath <s.kamath@samsung.com>
Date : 25 février 2014 11:16:43 UTC+1
Commit Date : 26 février 2014 12:35:41 UTC+1
Labels : HEAD origin/master_r152423 origin/HEAD master_r152423

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

Calculate rowPitch when hostPtr != NULL and rowPitch == 0

Fixed #456

Reviewed by Antonio Gomes.

Spotted by Anthony Liot.

This fixes a translated demo.

Validating the use sent rowPitch value, to avoid out of bound
access of the hostPtr.
Also validating the value as per specification conditions.

* Modules/webcl/WebCLContext.cpp:
(WebCore::WebCLContext::createImage):