http://llvm.org/bugs/show_bug.cgi?id=12807

Jordy Rose <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|                            |FIXED

--- Comment #1 from Jordy Rose <[email protected]> 2012-05-14 13:00:44 CDT 
---
The strncpy code path was bounds-checking on the last element accessed
(&dst[n-1]), but if n is 0, we get a size_t wraparound. Fixed with an explicit
check for 0 in r156769.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to