Skip to content

memset call with invalid value for fill character #1426

Open
@jwakely

Description

https://github.com/oneapi-src/oneTBB/blob/db334fc49b62ef8463e343c272da9bd9544b8514/test/tbbmalloc/test_malloc_whitebox.cpp#L493

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?

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions