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 **/
| 79 | |
| 80 | **/ |
| 81 | static 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 | |
| 98 | static int typeBuffer(ISC_STATUS*, char*, int, Auth::UserData&, Firebird::IListUsers*, Firebird::string&); |
no outgoing calls
no test coverage detected