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/19261] New: test-string.h questionable pointer arithmetic


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

            Bug ID: 19261
           Summary: test-string.h questionable pointer arithmetic
           Product: glibc
           Version: 2.23
            Status: NEW
          Severity: minor
          Priority: P3
         Component: string
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
  Target Milestone: ---
             Flags: security-

test-string.h contains this:

typedef struct
{
  const char *name;
  void (*fn) (void);
  long test;
} impl_t;
extern impl_t __start_impls[], __stop_impls[];
â
          for (impl = __start_impls; impl < __stop_impls; ++impl)       \

I don't think C gives a well-defined result for that because __start_impls and
__stop_impls are separate objects.

-- 
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]