Skip to content

DisplayProcesses function causes segmentation fault #39

@fabP258

Description

@fabP258

Issue description

The DisplayProcesses function from the NCursesDisplay namespace causes a segmentation fault if the size of the processes vector is smaller than the parameter n (which does not depend on the size of the vector and is 10 by default). I saw that in the updated repository this has already been fixed. But since this is the repository linked in the Udacity course it might be worth fixing it here as well.

Steps to reproduce the issue

The issue can be reproduced by returning an empty vector from System::Processes().

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