!33691 fix security function
Merge pull request !33691 from yeyunpeng2020/master
This commit is contained in:
commit
56a74ddeba
|
@ -371,9 +371,12 @@ int RunConverter(int argc, const char **argv) {
|
|||
}
|
||||
}
|
||||
// clear key
|
||||
flags->dec_key.clear();
|
||||
flags->encKeyStr.clear();
|
||||
status = memset_s(flags->encKey, converter::kEncMaxLen, 0, converter::kEncMaxLen);
|
||||
if (status != EOK) {
|
||||
MS_LOG(ERROR) << "memset failed.";
|
||||
delete meta_graph;
|
||||
return RET_ERROR;
|
||||
}
|
||||
delete meta_graph;
|
||||
|
|
|
@ -527,12 +527,6 @@ int Flags::Init(int argc, const char **argv) {
|
|||
return RET_OK;
|
||||
}
|
||||
|
||||
Flags::~Flags() {
|
||||
dec_key.clear();
|
||||
encKeyStr.clear();
|
||||
memset(encKey, 0, kEncMaxLen);
|
||||
}
|
||||
|
||||
bool CheckOfflineParallelConfig(const std::string &file, ParallelSplitConfig *parallel_split_config) {
|
||||
// device: [device0 device1] ---> {cpu, gpu}
|
||||
// computeRate: [x: y] x >=0 && y >=0 && x/y < 10
|
||||
|
|
|
@ -51,7 +51,7 @@ class Flags : public virtual mindspore::lite::FlagParser {
|
|||
public:
|
||||
Flags();
|
||||
|
||||
~Flags() override;
|
||||
~Flags() = default;
|
||||
|
||||
int InitInputOutputDataType();
|
||||
|
||||
|
|
Loading…
Reference in New Issue