Skip to content

Commit

Permalink
Fix use-after-free in c_typecheck_initializer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
reuk committed Nov 24, 2017
1 parent 82d42e5 commit 60ef5aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ansi-c/c_typecheck_initializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -591,9 +591,9 @@ exprt::operandst::const_iterator c_typecheck_baset::do_designated_initializer(
if(dest->operands().empty())
{
warning().source_location=value.find_source_location();
warning() << "initialisation of " << full_type.id()
<< " requires initializer list, found "
<< value.id() << " instead" << eom;
warning() << "initialisation of " << dest_type.id()
<< " requires initializer list, found " << value.id()
<< " instead" << eom;

// in case of a variable-length array consume all remaining
// initializer elements
Expand Down

0 comments on commit 60ef5aa

Please sign in to comment.