summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-06-16 00:09:20 +0000
committerJordan Rose <jordan_rose@apple.com>2012-06-16 00:09:20 +0000
commitde409b6d5f9fa835ee4d7e22d571ff7fc0c052b1 (patch)
tree23ccadf55dde3bcbd588da01a99f1db7786c3422 /llvm/lib/Support/Unix
parent13ffdd86b93ff8bf5d26bca55119982c899bb5ce (diff)
downloadbcm5719-llvm-de409b6d5f9fa835ee4d7e22d571ff7fc0c052b1.tar.gz
bcm5719-llvm-de409b6d5f9fa835ee4d7e22d571ff7fc0c052b1.zip
[analyzer] Buffers passed to CGBitmapContextCreate can escape.
Specifically, although the bitmap context does not take ownership of the buffer (unlike CGBitmapContextCreateWithData), the data buffer can be extracted out of the created CGContextRef. Thus the buffer is not leaked even if its original pointer goes out of scope, as long as - the context escapes, or - it is retrieved via CGBitmapContextGetData and freed. Actually implementing that logic is beyond the current scope of MallocChecker, so for now CGBitmapContextCreate goes on our system function exception list. llvm-svn: 158579
Diffstat (limited to 'llvm/lib/Support/Unix')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud