MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / loadWhiteBlackList

Method loadWhiteBlackList

native/events/Preference.cpp:644–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642 }
643
644 void Preference::loadWhiteBlackList() {
645 std::string contentBlack = fastbotx::Preference::loadFileContent(BlackListFilePath);
646 if (contentBlack.empty())
647 return;
648 std::vector<std::string> texts;
649 splitString(contentBlack, texts, '\n');
650 this->_blackList.swap(texts);
651 BLOG("blacklist :\n %s", contentBlack.c_str());
652 std::string contentWhite = fastbotx::Preference::loadFileContent(WhiteListFilePath);
653 std::vector<std::string> textsw;
654 splitString(contentWhite, textsw, '\n');
655 this->_whiteList.swap(textsw);
656 BLOG("whitelist :\n %s", contentWhite.c_str());
657 }
658
659///Load texts for input from specified file of designed text or file of fuzzing text
660 void Preference::loadInputTexts() {

Callers

nothing calls this directly

Calls 4

splitStringFunction · 0.85
emptyMethod · 0.80
swapMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected