summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPMacroExpansion.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-07-20 22:52:13 +0000
committerGreg Clayton <gclayton@apple.com>2015-07-20 22:52:13 +0000
commit1f982c2d22e51166b6b08d6929abb0278bf3dde7 (patch)
tree2aa2f4922a411dc6205dc61ad135bdd34e48cdca /clang/lib/Lex/PPMacroExpansion.cpp
parent1bf0f8ede6f8f2b01ae1bccb1cd7519b19465119 (diff)
downloadbcm5719-llvm-1f982c2d22e51166b6b08d6929abb0278bf3dde7.tar.gz
bcm5719-llvm-1f982c2d22e51166b6b08d6929abb0278bf3dde7.zip
Correctly get the arguments and environment, even for processes that have a large amount or arguments and/or environment variables.
We previously passed in a 8192 byte buffer but this wasn't large enough. We now calculate the size we need and then add 128 to it and get the environment. If we pass exactly the number of bytes it says is needs, the sysctl() returns junk. Adding 1 seemed to do the trick, but to err on the side of caution, I added a few bytes more. <rdar://problem/21883842> llvm-svn: 242729
Diffstat (limited to 'clang/lib/Lex/PPMacroExpansion.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud