[llvm-bugs] [Bug 37687] Incorrect destination buffer size calculation for strlcat

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 21 02:01:13 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=37687

André Hentschel <nerv at dawncrow.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |---
             Status|RESOLVED                    |REOPENED

--- Comment #5 from André Hentschel <nerv at dawncrow.de> ---
(In reply to André Hentschel from comment #4)
> (In reply to Artem Dergachev from comment #3)
> > This should be fixed in r342832. An identical test case was added to
> > cstring-syntax.c.
> 
> I still have this bug with clang 7.0.1 as well as prebuilt clang version
> 8.0.0-svn352915-1~exp1~20190202021152.17 (branches/release_80)
> 
> warning: Size argument is greater than the free space in the destination
> buffer
> strlcat(a, b, sizeof(a));

Same with clang version 9.0.0-svn354508-1~exp1+0~20190220193511.815~1.gbp8f98b4
reopening

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190221/0c3ae9e8/attachment.html>


More information about the llvm-bugs mailing list