| diff --git a/test_conformance/buffers/test_sub_buffers.cpp b/test_conformance/buffers/test_sub_buffers.cpp |
| index d6ab111..771380e 100644 |
| --- a/test_conformance/buffers/test_sub_buffers.cpp |
| +++ b/test_conformance/buffers/test_sub_buffers.cpp |
| @@ -522,6 +522,7 @@ int test_sub_buffers_overlapping( cl_device_id deviceID, cl_context context, cl_ |
| { |
| size_t offset = get_random_size_t( 0, mainSize / addressAlign, Action::GetRandSeed() ) * addressAlign; |
| size_t size = get_random_size_t( 1, ( mainSize - offset ) / addressAlign, Action::GetRandSeed() ) * addressAlign; |
| + size %= 64 * 1024; |
| |
| error = subBuffers[ i ].Allocate( mainBuffer, CL_MEM_READ_ONLY, offset, size ); |
| test_error( error, "Unable to allocate sub buffer" ); |