MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / serverSizeValidate

Function serverSizeValidate

src/common/call_service.cpp:81–95  ·  view source on GitHub ↗

serverSizeValidate @brief Validates server name in order to avoid buffer overflow later. Server name may be NULL in case of local access, we take it into account. @param status @param server **/

Source from the content-addressed store, hash-verified

79
80 **/
81static bool serverSizeValidate(ISC_STATUS* status, const TEXT* server)
82{
83 if (! server)
84 {
85 return true;
86 }
87 if (strlen(server) < SERVER_PART)
88 {
89 return true;
90 }
91 status[0] = isc_arg_gds;
92 status[1] = isc_gsec_inv_param;
93 status[2] = isc_arg_end;
94 return false;
95}
96
97
98static int typeBuffer(ISC_STATUS*, char*, int, Auth::UserData&, Firebird::IListUsers*, Firebird::string&);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected