Skip to content
Commit 69cec146 authored by Rui Ueyama's avatar Rui Ueyama
Browse files

[PECOFF] String pointed by StringRef is not always NUL-terminated.

In order not to overrun a StringRef and copy the trailing garbage, we need to
set the maximum length to be copied by strncpy.

llvm-svn: 195688
parent 8ac1c92d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment