MCPcopy Create free account
hub / github.com/baidu/openrasp / pre_sqlite3_querysingle_SQL

Function pre_sqlite3_querysingle_SQL

agent/php7/hook/openrasp_sqlite3.cc:58–68  ·  view source on GitHub ↗

sqlite3::querySingle

Source from the content-addressed store, hash-verified

56
57//sqlite3::querySingle
58void pre_sqlite3_querysingle_SQL(OPENRASP_INTERNAL_FUNCTION_PARAMETERS)
59{
60 zval *sql = nullptr;
61 zend_bool entire_row = 0;
62
63 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "z|b", &sql, &entire_row))
64 {
65 return;
66 }
67 plugin_sql_check(sql, "sqlite");
68}
69
70void post_sqlite3_exec_SQL_ERROR(OPENRASP_INTERNAL_FUNCTION_PARAMETERS)
71{

Callers

nothing calls this directly

Calls 1

plugin_sql_checkFunction · 0.70

Tested by

no test coverage detected