Skip to content

Argument Cannot Be Negative  #312

@ArielSAdamsNASA

Description

@ArielSAdamsNASA

Describe the bug
tempFd is passed to a parameter that cannot be negative.

Function open(".reservedkeyfile", 64, 448) returns a negative number.

Expected behavior
Add an if statement to ensure that tempFd is not a negative number.

Code snips

close(tempFd);

System observed on:
Coverity: https://scan.coverity.com/projects/arielsadamsnasa-cfs-jsf-rules?tab=overview

Reporter Info
Ariel Adams, ASRC Federal

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions