Skip to content

fix: add integer overflow check in sp_fft.c...#1

Open
orbisai0security wants to merge 1 commit into
Rezonality:mainfrom
orbisai0security:fix-integer-overflow-malloc-sp-fft
Open

fix: add integer overflow check in sp_fft.c...#1
orbisai0security wants to merge 1 commit into
Rezonality:mainfrom
orbisai0security:fix-integer-overflow-malloc-sp-fft

Conversation

@orbisai0security
Copy link
Copy Markdown

Summary

Fix high severity security issue in libs/soundpipe/lib/fft/sp_fft.c.

Vulnerability

Field Value
ID utils.custom.integer-overflow-malloc
Severity HIGH
Scanner semgrep
Rule utils.custom.integer-overflow-malloc
File libs/soundpipe/lib/fft/sp_fft.c:9

Description: Arithmetic multiplication used to compute allocation size without overflow check. If the multiplication wraps, a too-small buffer is allocated, leading to heap overflow. Check for overflow before allocating.

Changes

  • libs/soundpipe/lib/fft/sp_fft.c

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

Automated security fix by OrbisAI Security

Automated security fix generated by OrbisAI Security
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant