Skip to content
This repository was archived by the owner on Jul 14, 2023. It is now read-only.
This repository was archived by the owner on Jul 14, 2023. It is now read-only.

plutil does not handle the key path correctly when there is a nesting key path #7

@biaocy

Description

@biaocy

end = path.find('.', end);
std::string key = (end != std::string::npos ? path.substr(start, end - start) : path.substr(start));

The second parameter to path.find should be start, otherwise it will always find the first ., and the sub-key will be path.substr(first-dot-index, -1), cause the program to report error: invalid key path

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions