Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Package not found: openSUSE:Slowroll:Build:2/jfbterm
SUSE:SLE-15-SP2:Update
irqbalance.18776
fix_buffer_overflow_compiler.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_buffer_overflow_compiler.patch of Package irqbalance.18776
From: Thomas Renninger <trenn@suse.de> Fix compiler warning Avoid: In function ‘snprintf’, inlined from ‘sock_handle’ at irqbalance.c:457:12: /usr/include/bits/stdio2.h:64:3: warning: call to __builtin___snprintf_chk will always overflow destination buffer [enabled by default] return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, Index: irqbalance-1.4.0/irqbalance.c =================================================================== --- irqbalance-1.4.0.orig/irqbalance.c 2018-05-14 21:06:54.000000000 +0200 +++ irqbalance-1.4.0/irqbalance.c 2018-10-04 14:16:54.982803686 +0200 @@ -454,7 +454,7 @@ gboolean sock_handle(gint fd, GIOConditi if (!strncmp(buff, "setup", strlen("setup"))) { char banned[512]; char *setup = calloc(strlen("SLEEP ") + 11 +1, 1); - snprintf(setup, 2048, "SLEEP %d ", sleep_interval); + sprintf(setup, "SLEEP %d ", sleep_interval); if(g_list_length(cl_banned_irqs) > 0) { for_each_irq(cl_banned_irqs, get_irq_data, setup); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor