Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
spockhub opened this issue Jan 14, 2025 · 0 comments

Comments

@spockhub
Copy link

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

	inlen_size = 15 - ivlen;
	if (inlen_size < 8 && inlen >= ((unsigned long long)1 << (inlen_size * 8))) {
		error_print();
		return -1;
	}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant