[Issue 10357] Potential buffer underflow in function config_find_base