[PATCH openEuler-5.10 58/97] thermal/core: Potential buffer overflow in thermal_build_list_of_policies()