Skip to content

Commit

Permalink
Fixed bug #68976 - Use After Free Vulnerability in unserialize()
Browse files Browse the repository at this point in the history
  • Loading branch information
smalyshev committed Mar 17, 2015
1 parent 38e15d8 commit 780222f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/standard/var_unserializer.re
Expand Up @@ -396,6 +396,8 @@ string_key:
return 0;
}

var_push_dtor(var_hash, data);

if (elements && *(*p-1) != ';' && *(*p-1) != '}') {
(*p)--;
return 0;
Expand Down

0 comments on commit 780222f

Please sign in to comment.