image: validate: Don't log whole image config

This commit is contained in:
IRHM
2026-07-10 21:22:26 +01:00
committed by momi
parent f285d1a8f4
commit 05f9813be8
+4 -1
View File
@@ -173,7 +173,10 @@ func (s *Saver) validate(b []byte) ([]byte, string, error) {
slog.Error("Validate: Failed to DecodeConfig", "error", err)
return []byte{}, "", errors.New("invalid or bad image")
}
slog.Debug("Validate", "cfg", cfg, "format", format)
slog.Debug("Validate",
"cfg.Width", cfg.Width,
"cfg.Height", cfg.Height,
"format", format)
if int64(cfg.Width) > defMaxWidthHeight ||
int64(cfg.Height) > defMaxWidthHeight {
return []byte{}, "", errors.New("dimensions too large")