Remove verification of string bytes after null termination.
authorSlawomir Cygan <slawomir.cygan@intel.com>
Thu, 21 Nov 2019 16:35:23 +0000 (17:35 +0100)
committerSlawomir Cygan <slawomir.cygan@intel.com>
Thu, 21 Nov 2019 16:39:01 +0000 (17:39 +0100)
Spec does not require to zero bytes after the null-termination of the string.

Components: Vulkan

VK-GL-CTS Issue: 2117

Affects: dEQP-VK.pipeline.executable_properties.*

Change-Id: Ia07b51f22379cea28ca73fe0a1594ef5230c27af

external/vulkancts/modules/vulkan/pipeline/vktPipelineExecutablePropertiesTests.cpp

index 54e9456..dd7a2e4 100644 (file)
@@ -619,15 +619,6 @@ checkString(const char *string, size_t size)
                return false;
        }
 
-       // The rest of the string should be zero
-       for (; i < size; i++)
-       {
-               if (string[i] != 0)
-               {
-                       return false;
-               }
-       }
-
        return true;
 }