brave / brave/security-action

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

Open
#426 0 comments 0 reactions 1 assignee Assigned to @thypon View on GitHub
bug
Dominant language
JavaScript
Stars
22
Forks
8
Avg merge
2d 6h
Merged PRs (30d)
40

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.