I keep seing this...

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Fri Oct 27 15:33:41 UTC 2017


Since a while back, with:

$ gcc --version
gcc (Debian 7.2.0-12) 7.2.1 20171025

procps/powertop.c: In function 'read_cstate_counts':
procps/powertop.c:181:20: warning: '%s' directive writing up to 255 bytes into a region of size 171 [-Wformat-overflow=]
   sprintf(buf, "%s/%s/power", "/proc/acpi/processor", d->d_name);
                    ^~
procps/powertop.c:181:3: note: 'sprintf' output between 28 and 283 bytes into a destination of size 192
   sprintf(buf, "%s/%s/power", "/proc/acpi/processor", d->d_name);


Cheers,

-- 
Cristian


More information about the busybox mailing list