Skip to content

Error on negative value of LISTEN_FDS #471

@vporoshok

Description

@vporoshok

Hi! We use a static code analyser on our code, which also checks dependencies. The analyser pointed out that in the code activation/files_unix.go there are no checks if nfds is negative, which may lead to a panic on line 58. It seems to me that the check on line 52 should be changed to

if err != nil || nfds <= 0 {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions