This is the mail archive of the libc-alpha@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]

Re: [PATH] [BZ 15674] Fix reading past the array boundary in __memcmp_ssse3


> +  int max_length = page_size / sizeof (CHAR);

size_t.

> +  CHAR * buf = (CHAR *) buf2;

No space after *.

> +  int length;
> +
> +  for (length = 1; length < max_length; length++)

for (size_t length = ...

> +    {
> +      CHAR * s1 = (CHAR *) buf1 + max_length - length;
> +      CHAR * s2 = (CHAR *) buf + max_length - length;

No space after *.


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