Skip to content

fix: add integer overflow check in st.c...#10

Open
orbisai0security wants to merge 1 commit into
fluent:masterfrom
orbisai0security:fix-integer-overflow-malloc-st-c
Open

fix: add integer overflow check in st.c...#10
orbisai0security wants to merge 1 commit into
fluent:masterfrom
orbisai0security:fix-integer-overflow-malloc-st-c

Conversation

@orbisai0security
Copy link
Copy Markdown

Summary

Fix high severity security issue in st.c.

Vulnerability

Field Value
ID utils.custom.integer-overflow-malloc
Severity HIGH
Scanner semgrep
Rule utils.custom.integer-overflow-malloc
File st.c:624

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

  • st.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