Skip to content

Commit

Permalink
Fix heap buffer overflow in UsageMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
serebit committed Oct 21, 2023
1 parent 7dfa026 commit dc4746e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raven/widgets/usage-monitor/usage_monitor.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dc4746e

Please sign in to comment.