ocl: memory corruption check