Skip to content
Snippets Groups Projects
Commit 2c7253a0 authored by an7s's avatar an7s
Browse files

fixed bug -- now return success == false when tautology detected

Former-commit-id: e48bad8fad8c17b6d52de26cec59765ef05b901b
parent 4532b452
No related branches found
No related tags found
No related merge requests found
......@@ -175,16 +175,15 @@ int sqlfw_verify(const char *zSql, char **errMsg)
// get all the critical keywords / detect tautologies
sqlfw_get_structure(zSql, tainted, structure, &is_tautology);
if (is_tautology && verbose)
if (is_tautology)
{
appfw_display_taint("SQL Injection detected (tautology)", zSql, tainted);
success = 0;
if (verbose)
appfw_display_taint("SQL Injection detected (tautology)", zSql, tainted);
}
if (!is_tautology)
else
{
success = appfw_establish_taint_fast2(zSql, tainted, FALSE);
if (!success && verbose)
appfw_display_taint("SQL Injection detected", zSql, tainted);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment