Define strnlen when it is not in libc
Hubert Tong via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 28 18:16:00 PST 2016
This implementation of strnlen reads one more byte than is allowed by the
specification at
http://pubs.opengroup.org/onlinepubs/9699919799/functions/strlen.html.
-- HT
On Thu, Nov 24, 2016 at 2:06 PM, Chi-Hua Chen via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> Some older platforms, e.g. Mac 10.6.8, do not have strnlen. Define one
> in Support when necessary.
>
> Cc-ing dexonsmith because the commit below is the first one using strnlen
> ---
> commit 839cd13b65d802f06276ff88d234419c38a44199
> Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
> Date: Sun Feb 21 00:14:36 2016 +0000
>
> Lex: Never overflow the file in HeaderMap::lookupFilename()
> ---
> See https://llvm.org/bugs/show_bug.cgi?id=27714
>
> - Chi-Hua Chen
>
> p.s. This is the first time I submit to llvm-commits. I've read the
> Developer Policy but please let me know if I am not doing it right
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161128/c4ad68ee/attachment.html>
More information about the llvm-commits
mailing list