common icon indicating copy to clipboard operation
common copied to clipboard

toSecret' "return nil, nil" is error-prone

Open machine424 opened this issue 11 months ago • 0 comments

here https://github.com/prometheus/common/blob/098669c08af8eee3da33d1d4a4f242a5242cccb8/config/http_config.go#L781-L797

because the error is nil, we may/would be moving nils around, leading to nil pointer dereference

may be the cause of https://github.com/prometheus/prometheus/issues/16622

machine424 avatar May 22 '25 09:05 machine424