mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Fixing bug in JCA cipher modeling. intermediate operations should not be key operations.
This commit is contained in:
@@ -611,6 +611,8 @@ module JCAModel {
|
||||
}
|
||||
|
||||
class CipherOperationInstance extends Crypto::KeyOperationInstance instanceof CipherOperationCall {
|
||||
CipherOperationInstance() { not this.isIntermediate() }
|
||||
|
||||
override Crypto::KeyOperationSubtype getKeyOperationSubtype() {
|
||||
if CipherFlowAnalysisImpl::hasInit(this)
|
||||
then result = CipherFlowAnalysisImpl::getInitFromUse(this, _, _).getCipherOperationModeType()
|
||||
|
||||
Reference in New Issue
Block a user