config: use yaml.safe_load instead of load

This change replaces an insecure yaml.load procedure by yaml.safe_load.

Change-Id: Ie14935f604f23b0928eed0dd8e28dff49699a2d1
This commit is contained in:
Tristan Cacqueray 2019-03-18 04:14:43 +00:00
parent 4b29a89d57
commit 51074f5e66
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ def openConfig(path):
# attempt to reload it.
while True:
try:
config = yaml.load(open(path))
config = yaml.safe_load(open(path))
break
except IOError as e:
if e.errno == 2: