HomeClusterLabs Projects

coroparse: Implement handler for str_to_ull error
b4664fab70beUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

coroparse: Implement handler for str_to_ull error

Previously atoi_error handler was used for both safe_atoq and str_to_ull
errors. This is wrong, because str_to_ull doesn't define val_type so
safe_atoq_range assert either failed or error message contained invalid
integer ranges.

Example of such file is

totem {
    version: 2
    config_version: c42
...

which results in abort.

Solution is to split safe_atoq and str_to_ull error handling, first one
displaying range and second one doesn't.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>

Details

Provenance
jfriesseAuthored on Fri, Apr 25, 10:13 AM
Parents
rC30a1cb0d9fb5: coroparse: Remove kv_items from list
Branches
Unknown
Tags
Unknown

Event Timeline