Skip to content

Consider overly long paths #1498

@stoeckmann

Description

@stoeckmann

Some of shadow's code, e.g. lib/commonio, limits internal paths to 1024 characters. While this is more than enough for regular paths like /etc/passwd and so on, the prefix flags would allow longer paths.

Either check if supplied arguments (and subsequent constructions of paths, e.g. backup files) fit into buffers or dynamically allocate these paths and just check if opening/creating these paths fail afterwards.

See #1497 (comment)

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