-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Consistent and critical failure parsing large (>500 lines) YAML configuration files. #419
Comments
I was looking over this again and found that maximum parameters is a hard coded constant at 512. This splits this issue into separate parts:
|
There's a related issue concerning the other hardcoded lengths in the parser: #244 |
If the maximum number is exceeded fail with an informative error message. Fixes #419. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Bug report
Required Info:
Steps to reproduce issue
Make any yaml parameter file is very long
Run with any node
The same occurs with the python examples, and every node I've tried.
Expected behavior
Node load as normal with the parameters set.
Actual behavior
Critical Failure with
corrupted size vs. prev_size
during node construction.Additional information
The abort comes during the call to
yaml_parser_delete
. https://github.com/ros2/rcl/blob/master/rcl_yaml_param_parser/src/parser.c#L1384I think that libyaml's parser object is somehow getting corrupted.
I have succeeded in parsing such yaml files with libyaml (0.1.8), pyyaml, etc., with no issue.
The text was updated successfully, but these errors were encountered: