ochinchina / supervisord

a go-lang supervisor implementation
MIT License
4.03k stars 570 forks source link

fix index out of range when parsing empty env #387

Open rainhard opened 7 months ago

rainhard commented 7 months ago

parseEnv in config.go will panic if s is empty. eg:

    envs = parseEnv("")
    envs = parseEnv("A")
    envs = parseEnv("A=")

fix with index check