diff --git a/src/gausskernel/cbb/bbox/gs_bbox.cpp b/src/gausskernel/cbb/bbox/gs_bbox.cpp index 902fffdf..405a30b9 100644 --- a/src/gausskernel/cbb/bbox/gs_bbox.cpp +++ b/src/gausskernel/cbb/bbox/gs_bbox.cpp @@ -327,7 +327,6 @@ static List* split_string_into_blacklist(const char* source) return result; } - bool check_bbox_blacklist(char** newval, void** extra, GucSource source) { if (t_thrd.proc_cxt.MyProcPid != PostmasterPid) @@ -465,10 +464,15 @@ void bbox_blacklist_remove(BlacklistIndex item, void* addr) } /* - * @Description: check the value from environment variablethe to prevent command injection. - * @in input_env_value : the input value need be checked. - * - */ +function name: CheckFilenameValid +description: Check if the filename is in line with norms, or if dangerous characters appear + the filename is invalid. +arguments: A pointer to string indicating filename. +return value: An integer, if function works normally, the value is RET_OK, else it's RET_ERR. +note: none +date: 2022/8/4 +contact tel: 18720816902 +*/ int CheckFilenameValid(const char* inputEnvValue) { const int maxLen = 1024;