Limit glob flags to only ones supported by php
commit021135c883d13fc2876cf921c0cd023f5416bcf0
authorMatt Clarke-Lauer <mcl@fb.com>
Fri, 21 Nov 2014 01:02:41 +0000 (20 17:02 -0800)
committerhhvm-bot <hhvm-bot@fb.com>
Fri, 19 Dec 2014 17:30:30 +0000 (19 09:30 -0800)
tree97f186bda53243c14d2de2a6158b45805e8b2502
parent8d760d25addc0a45eeedcbe55dbf92072ef59d4e
Limit glob flags to only ones supported by php

Summary: PHP only lists support for a few glob flags. There was a segfault in
glob caused by passing invalid flags. To prevent that only allow php glob flags
to be used when calling glob.

CVE-2011-1657

Reviewed By: @paulbiss

Differential Revision: D1696172
hphp/runtime/ext/std/ext_std_file.cpp