mirror of
https://github.com/adrienverge/yamllint.git
synced 2025-02-25 18:55:20 -06:00
Syntax errors: Use the BaseLoader for safety
This commit is contained in:
parent
918f15b68d
commit
01c12f2462
@ -58,7 +58,7 @@ def get_costemic_problems(buffer, conf):
|
||||
|
||||
def get_syntax_error(buffer):
|
||||
try:
|
||||
list(yaml.parse(buffer))
|
||||
list(yaml.parse(buffer, Loader=yaml.BaseLoader))
|
||||
except yaml.error.MarkedYAMLError as e:
|
||||
problem = LintProblem(e.problem_mark.line + 1,
|
||||
e.problem_mark.column + 1,
|
||||
|
Loading…
Reference in New Issue
Block a user