]> granicus.if.org Git - clang/commit
os_log: When there are multiple privacy annotations in the format
authorAkira Hatanaka <ahatanaka@apple.com>
Wed, 11 Jul 2018 22:19:14 +0000 (22:19 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Wed, 11 Jul 2018 22:19:14 +0000 (22:19 +0000)
commite45150d3b17ee2298a07e344c8b20595f239cd45
tree7b926788b448ab28534bbc20cbdcd5a6c733b770
parent0c4483d9394896cd5d7057144a4cff2a4a03dd40
os_log: When there are multiple privacy annotations in the format
string, choose the strictest one instead of the last.

Also fix an undefined behavior. Move the pointer update to a later point to
avoid adding StringRef::npos to the pointer.

rdar://problem/40706280

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336863 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/PrintfFormatString.cpp
test/CodeGen/builtins.c