Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* fixed several crashes in several piglit tests in *GetInfo* function…
…s due to illegal writes
  • Loading branch information
zuzuf committed Aug 15, 2014
1 parent b73bf93 commit 78805e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/freeocl.cpp
Expand Up @@ -148,6 +148,8 @@ namespace FreeOCL
{
if (s != NULL)
*s = size;
if (dst != NULL && size > maxSize)
return true;
if (dst != NULL)
memcpy(dst, src, std::min(size, maxSize));
return size > maxSize;
Expand Down

0 comments on commit 78805e3

Please sign in to comment.