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

Function pre_sqlite3_querysingle_SQL

agent/php5/hook/openrasp_sqlite3.cc:58–67  ·  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 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|b", &sql, &entire_row))
63 {
64 return;
65 }
66 plugin_sql_check(sql, "sqlite" TSRMLS_CC);
67}
68
69void post_sqlite3_exec_SQL_ERROR(OPENRASP_INTERNAL_FUNCTION_PARAMETERS)
70{

Callers

nothing calls this directly

Calls 1

plugin_sql_checkFunction · 0.70

Tested by

no test coverage detected