avoid hardcoding of namespace_map in facts parser
commit4ef4cdca860a8b9949c77c2716c9848790ab9f5c
authorMillie Chen <milliechen@fb.com>
Sat, 2 Apr 2022 07:13:02 +0000 (2 00:13 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Sat, 2 Apr 2022 07:13:02 +0000 (2 00:13 -0700)
tree6eec99c1d8808758339f2f074fbb91a607f7945c
parentff36ff582957fdcb09349456b18380abc025ac45
avoid hardcoding of namespace_map in facts parser

Summary: This namespace alias configuration is defined in www, but the one used for facts parsing is a hardcoded string. To prevent potential SEVs caused by disparity between the two, this diff threads the namespace map parsed from .hhconfig through facts parsing.

Reviewed By: jthemphill

Differential Revision: D35149588

fbshipit-source-id: d8d40e769444b26c4d9e831869fb989ab8ef7826
15 files changed:
hphp/hack/src/facts/facts_parser.ml
hphp/hack/src/facts/facts_parser.mli
hphp/hack/src/facts/ffi/rust_facts_ffi.ml
hphp/hack/src/facts/rust_facts_ffi/rust_facts_ffi.rs
hphp/hack/src/facts/symbols/dune
hphp/hack/src/facts/symbols/hhGlobalIndexBuilder.ml
hphp/hack/src/facts/symbols/indexBuilder.ml
hphp/hack/src/facts/symbols/indexBuilderTypes.ml
hphp/hack/src/hh_single_compile.ml
hphp/hack/src/search/dune
hphp/hack/src/search/localSearchService.ml
hphp/hack/src/search/sqliteSearchService.ml
hphp/hack/src/search/symbolIndex.ml
hphp/hack/src/server/serverRpc.ml
hphp/hack/test/integration/symbol_index_test.ml