Skip to content

False positive: memset(foo 0, sizeof(foo)) #426

Open
@fmarier

Description

memset(foo, 0, sizeof(foo));

will always be fine since it's explicitly checking the destination size.

Reference:
https://github.com/brave/brave-core/pull/20895/files#r1387189235
https://github.com/brave/brave-core/pull/20895/files#r1387189237

Proposed Solution

  • Remove the rule
  • Fork and improve the rule

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions