Skip to content

Commit

Permalink
Fix use after free of label in wto_t::stack
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
  • Loading branch information
Alan-Jowett authored and elazarg committed Feb 21, 2022
1 parent d3facca commit 3d10ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crab/wto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void wto_t::start_visit(const label_t& vertex, wto_partition_t& partition, std::

if (head_dfn == vertex_data.dfn) {
vertex_data.dfn = INT_MAX;
label_t& element = _stack.top();
label_t element = _stack.top();
_stack.pop();
if (loop) {
while (element != vertex) {
Expand Down

0 comments on commit 3d10ac6

Please sign in to comment.