Skip to content
New issue

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

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

Already on GitHub? # to your account

memset call with invalid value for fill character #1426

Open
jwakely opened this issue Jun 26, 2024 · 0 comments
Open

memset call with invalid value for fill character #1426

jwakely opened this issue Jun 26, 2024 · 0 comments
Assignees
Labels

Comments

@jwakely
Copy link
Contributor

jwakely commented Jun 26, 2024

memset(ptr, minLargeObjectSize, minLargeObjectSize);

This calls memset with minLargeObjectSize as the fill character, but that's a value much larger than UCHAR_MAX so will be truncated. What's the purpose of this call? Could it use a different value that doesn't upset static analyzers?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants