From 9f229bb68465862bd664e86fa74a1500348ac573 Mon Sep 17 00:00:00 2001 From: Stevie Robinson Date: Thu, 22 May 2025 02:52:16 +0200 Subject: [PATCH] Ensure Custom Format Maximum Size won't overflow (cherry picked from commit a50d2562649bbe77d0feb9fbfc594d56952e0a5e) --- .../CustomFormats/Specifications/SizeSpecification.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NzbDrone.Core/CustomFormats/Specifications/SizeSpecification.cs b/src/NzbDrone.Core/CustomFormats/Specifications/SizeSpecification.cs index fe873f9ec..9e2fe766e 100644 --- a/src/NzbDrone.Core/CustomFormats/Specifications/SizeSpecification.cs +++ b/src/NzbDrone.Core/CustomFormats/Specifications/SizeSpecification.cs @@ -11,6 +11,7 @@ namespace NzbDrone.Core.CustomFormats { RuleFor(c => c.Min).GreaterThanOrEqualTo(0); RuleFor(c => c.Max).GreaterThan(c => c.Min); + RuleFor(c => c.Max).LessThanOrEqualTo(double.MaxValue); } }