Skip to content

Commit

Permalink
Fix buffer overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianbs96 committed Jan 5, 2025
1 parent ca67f0c commit 381e9e7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ struct IDEFeatureTaintEdgeFact {
if (RequiredSize > Taints.size()) {
Taints.resize(RequiredSize);
}
Taints.setBitsInMask((const uint32_t *)&Facts, sizeof(Facts));
Taints.setBitsInMask((const uint32_t *)&Facts,
sizeof(Facts) / sizeof(uint32_t));
}
void unionWith(const IDEFeatureTaintEdgeFact &Facts) {
if (Facts.isTop()) {
Expand Down

0 comments on commit 381e9e7

Please sign in to comment.