[PATCH] D27037: Introduce StringRefZ class to represent null-terminated string.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 29 07:42:50 PST 2016


ruiu added a comment.

One thing we could do to prevent buffer overrun is to check if a string table ends with '\0'. String table is runs of null-terminated, so it should ends with null, and that should work as the last stopper.


https://reviews.llvm.org/D27037





More information about the llvm-commits mailing list