This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug string/20260] New: ../sysdeps/x86/bits/string.h:1092:3: error: array subscript is below array bounds [-Werror=array-bounds]


https://sourceware.org/bugzilla/show_bug.cgi?id=20260

            Bug ID: 20260
           Summary: ../sysdeps/x86/bits/string.h:1092:3: error: array
                    subscript is below array bounds [-Werror=array-bounds]
           Product: glibc
           Version: 2.24
            Status: NEW
          Severity: normal
          Priority: P2
         Component: string
          Assignee: unassigned at sourceware dot org
          Reporter: schwab@linux-m68k.org
  Target Milestone: ---
              Host: i586-*-*

Building the tests with gcc-6 triggers this error in strncat on i586:

In file included from ../string/string.h:627:0,
                 from ../include/string.h:54,
                 from tester.c:32,
                 from inl-tester.c:6:
tester.c: In function 'test_strncat':
../sysdeps/x86/bits/string.h:1092:3: error: array subscript is below array
bounds [-Werror=array-bounds]
   --__tmp;
   ^~~~~~~

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]