From 833dcc1ecc72d560202468f4f1f7a216a4cffc99 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 17:29:25 +0000 Subject: Apply patch irqbalance-1.4.0-Fix-an-possible-overflow-error.patch patch_name: irqbalance-1.4.0-Fix-an-possible-overflow-error.patch present_in_specfile: true --- diff --git a/irqbalance.c b/irqbalance.c index 4b3de54..c89c3c0 100644 --- a/irqbalance.c +++ b/irqbalance.c @@ -457,8 +457,8 @@ gboolean sock_handle(gint fd, GIOCondition condition, gpointer user_data __attri } if (!strncmp(buff, "setup", strlen("setup"))) { char banned[512]; - char *setup = calloc(strlen("SLEEP ") + 11 +1, 1); - snprintf(setup, 2048, "SLEEP %d ", sleep_interval); + char *setup = calloc(strlen("SLEEP ") + 11 + 1, 1); + snprintf(setup, strlen("SLEEP ") + 11 + 1, "SLEEP %d ", sleep_interval); if(g_list_length(cl_banned_irqs) > 0) { for_each_irq(cl_banned_irqs, get_irq_data, setup); }