Commit c82994c7 authored by Yevgeny Pats's avatar Yevgeny Pats
Browse files

crash

parent 5e89041a
Showing with 1 addition and 1 deletion
+1 -1
......@@ -12,7 +12,7 @@ int test_string(const char *src, size_t len)
} else {
if (strncmp(src, FLAG, strlen(FLAG)) == 0) {
// TRIGGER HEAP OVERFLOW READ
if (src[len-1] == 0) {
if (src[len] == 0) {
return -2;
}
return -1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment