Skip to content

Bad shell arguments initialization #18

@RDCH106

Description

@RDCH106

The file main.go overwrites the arguments with no checks:

        httpPort := DefaultHTTPPort
	computerFilePath := DefaultComputerFilePath

	// Start Processing Shell Arguments or use Default Values defined i const.go
	httpPort, computerFilePath = processShellArgs()

	// Process Environment Variables
	httpPort, computerFilePath = processEnvVars()

The result of the evaluation o the piece of code is that the environment variables are used or default values are used. The shell arguments always will be overwritten.

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