diff options
author | Fangrui Song <maskray@google.com> | 2019-05-30 08:03:02 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-05-30 08:03:02 +0000 |
commit | 9b8a0d7110e97db67f48368ee623d06cbb6075a5 (patch) | |
tree | a7f478b36a70243584fb5a8f90cbb8f9a0fe84ce /clang/lib/Analysis/PostOrderCFGView.cpp | |
parent | bb4839d4157b3dc2552687f2e6dcb20245d2988e (diff) | |
download | bcm5719-llvm-9b8a0d7110e97db67f48368ee623d06cbb6075a5.tar.gz bcm5719-llvm-9b8a0d7110e97db67f48368ee623d06cbb6075a5.zip |
asm goto: fix out-of-bounds read of Constraints after rC362045
When parsing goto labels, Names and Exprs are expanded but Constraints
is not, this may cause a out-of-bounds read later in:
// GCCAsmStmt::GCCAsmStmt
// `constraints` has only `NumExprs - NumLabels` elements
Constraints = new (C) StringLiteral*[NumExprs];
std::copy(constraints, constraints + NumExprs, Constraints);
llvm-svn: 362067
Diffstat (limited to 'clang/lib/Analysis/PostOrderCFGView.cpp')
0 files changed, 0 insertions, 0 deletions