error: ‘%s’ directive writing up to 4095 bytes into a region of size 4080

Bug #1901175 reported by Antonio Santagiuliana
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
acpica-unix (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hello
I'd need to use this version 20160422 of iASL.
I downloaded the tar.gz file and I tried building with command "make" .
I get this error :

../../../source/compiler/aslanalyze.c: In function ‘AnCheckMethodReturnValue’:
../../../source/compiler/aslanalyze.c:359:17: error: ‘%s’ directive writing up to 4095 bytes into a region of size 4080 [-Werror=format-overflow=]
                 "Method returns [%s], %s operator requires [%s]",
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 StringBuffer, OpInfo->Name, StringBuffer2);
                 ~~~~~~~~~~~~
In file included from /usr/include/stdio.h:862,
                 from ../../../source/include/platform/acenv.h:399,
                 from ../../../source/include/acpi.h:56,
                 from ../../../source/compiler/aslcompiler.h:47,
                 from ../../../source/compiler/aslanalyze.c:44:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: note: ‘__builtin___sprintf_chk’ output 41 or more bytes (assuming 8231) into a destination of size 4096
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
../Makefile.rules:18: recipe for target 'obj/aslanalyze.o' failed
make[1]: *** [obj/aslanalyze.o] Error 1

how to fix this ?

thank youo

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.