tint: Fix use-after-free
Bug: chromium:1324533 Bug: chromium:1326749 Bug: oss-fuzz:47516 Change-Id: I0fd2db8997beaeaedc867bd27ee8866ace4e7cf0 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/90820 Commit-Queue: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
parent
c670018aea
commit
2e681052b3
|
@ -94,7 +94,7 @@ bool TraverseExpressions(const ast::Expression* root, diag::List& diags, CALLBAC
|
|||
};
|
||||
|
||||
while (!to_visit.empty()) {
|
||||
auto& p = to_visit.back();
|
||||
auto p = to_visit.back();
|
||||
to_visit.pop_back();
|
||||
const ast::Expression* expr = p.expr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue