Skip to content

CommandLineParser misbehaves due to improper argv handling #613

Closed
@niemeyer

Description

@niemeyer

Hello there, and thanks for creating this comprehensive wrapper.

There's currently a bug when using CommandLineParser, observable even with some of the current examples. The problem is rooted on the mishandling of the argv parameter, provided into CommandLineParser without first guaranteeing that the individual pointers refer to C-style null-terminated strings. The symptom is garbage being observed in the parsed command line parameter values.

I've submitted a candidate fix to #612.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions