Skip to content

sm4_ccm.c 编译为32位的程序时,加解密的参数校验存在溢出,导致误报参数错误 #26

@spockhub

Description

@spockhub

sm4_ccm.c 编译为32位的程序时,加解密的参数校验存在溢出导致误报参数错误

	inlen_size = 15 - ivlen;
	if (inlen_size < 8 && inlen >= ((unsigned long long)1 << (inlen_size * 8))) {
		error_print();
		return -1;
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions