From 9b979bb58905bf228362007b7433fb9f7efb5923 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Wed, 11 Mar 2026 13:02:41 +0100 Subject: [PATCH] Fixes process provider which could throw an exception for integer overflow on memory usage --- doc/100-General/10-Changelog.md | 1 + .../assets/process/Get-IcingaProviderDataValuesProcess.psm1 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/100-General/10-Changelog.md b/doc/100-General/10-Changelog.md index 66c25da..0bb3f3d 100644 --- a/doc/100-General/10-Changelog.md +++ b/doc/100-General/10-Changelog.md @@ -14,6 +14,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic ### Bugfixes * [#861](https://github.com/Icinga/icinga-powershell-framework/pull/861) Fixes `Update-IcingaWindowsUserPermission` to ensure permissions for logon as service are granted for non-managed users, while the removal process and any logon deny rights are never touched to not break possible third-party software and manually user configuration for those users +* [#864](https://github.com/Icinga/icinga-powershell-framework/pull/864) Fixes process provider which could throw an exception for integer overflow on memory usage ## 1.14.1 (2026-02-11) diff --git a/lib/provider/assets/process/Get-IcingaProviderDataValuesProcess.psm1 b/lib/provider/assets/process/Get-IcingaProviderDataValuesProcess.psm1 index 24deaab..e4f1dae 100644 --- a/lib/provider/assets/process/Get-IcingaProviderDataValuesProcess.psm1 +++ b/lib/provider/assets/process/Get-IcingaProviderDataValuesProcess.psm1 @@ -129,7 +129,7 @@ function Get-IcingaProviderDataValuesProcess() } else { [string]$MEMProcessName = $TopMEMUsage.Key.Split('|')[0]; [int]$MEPProcessId = $TopMEMUsage.Key.Split('|')[1]; - [int]$MemoryUsage = $TopMEMUsage.Value; + [decimal]$MemoryUsage = $TopMEMUsage.Value; } if ($TopMEMUsage.Value[$IterationIndex] -gt 0) {