strncmp length correction#1729
Conversation
Double quotes in cJSON output were removed at bca23b3 They were also removed from those string literals, however the third `strncmp`'s argument left unchanged, making the function to check beyond the string.
|
Author 1640max not on autobuild list. Waiting for curator authorization before starting CI build. |
1 similar comment
|
Author 1640max not on autobuild list. Waiting for curator authorization before starting CI build. |
charles-lunarg
left a comment
There was a problem hiding this comment.
Thanks for catching this! How did you find it if I may ask?
I can guess why I didn't, the tests don't write intentionally wrong arch strings so strncmp always returned before reading garbage.
|
CI Vulkan-Loader build queued with queue ID 465912. |
|
CI Vulkan-Loader build # 3081 running. |
|
CI Vulkan-Loader build # 3081 passed. |
|
I was trying a niche-specific code analyser—nothing noteworthy, to be honest. I just realised that |
Double quotes in cJSON output were removed at bca23b3
They were also removed from those string literals, however the third
strncmp's argument left unchanged, making the function to check beyond the string.