From dc4746e86dc3faa6e6646c7466f97979a26aba89 Mon Sep 17 00:00:00 2001 From: Campbell Jones Date: Sat, 21 Oct 2023 14:08:04 -0400 Subject: [PATCH] Fix heap buffer overflow in UsageMonitor --- src/raven/widgets/usage-monitor/usage_monitor.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raven/widgets/usage-monitor/usage_monitor.vala b/src/raven/widgets/usage-monitor/usage_monitor.vala index ddb70c745..ba2c59e6e 100644 --- a/src/raven/widgets/usage-monitor/usage_monitor.vala +++ b/src/raven/widgets/usage-monitor/usage_monitor.vala @@ -214,7 +214,7 @@ public class UsageMonitorRavenWidget : Budgie.RavenWidget { string label = ""; ulong value = -1; - line.scanf("%s %lu", label, &value); + line.scanf("%ms %lu", &label, &value); if (label == "MemTotal:") { contents.mem_total = value;