Skip to content

Commit

Permalink
Added missing functions to the api map
Browse files Browse the repository at this point in the history
The API Map is used to assign an identifier to the functions provided
by clam to the bytecode signatures.  Lzma and Bzip2 functions were missing,
and this commit adds them.
  • Loading branch information
ragusaa committed Jun 9, 2021
1 parent 2133df6 commit 538200f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libclambcc/ClamBCAnalyzer/ClamBCAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,12 @@ void ClamBCAnalyzer::populateAPIMap()
apiMap["json_get_boolean"] = id++;
apiMap["json_get_int"] = id++;
apiMap["engine_scan_options_ex"] = id++;
apiMap["lzma_init"] = id++;
apiMap["lzma_process"] = id++;
apiMap["lzma_done"] = id++;
apiMap["bzip2_init"] = id++;
apiMap["bzip2_process"] = id++;
apiMap["bzip2_done"] = id++;
}

void ClamBCAnalyzer::getAnalysisUsage(AnalysisUsage &AU) const
Expand Down

0 comments on commit 538200f

Please sign in to comment.