Skip to content

fix: add buffer-length check in compiler_base.h - #4

Open
anupamme wants to merge 1 commit into
msonrm:mainfrom
anupamme:fix-repo-quubee-oemstrcpy-buffer-overflow
Open

fix: add buffer-length check in compiler_base.h#4
anupamme wants to merge 1 commit into
msonrm:mainfrom
anupamme:fix-repo-quubee-oemstrcpy-buffer-overflow

Conversation

@anupamme

@anupamme anupamme commented Aug 2, 2026

Copy link
Copy Markdown

Summary

Fix high severity security issue in native/compiler_base.h.

Vulnerability

Field Value
ID V-001
Severity HIGH
Scanner multi_agent_ai
Rule V-001
File native/compiler_base.h:93
Assessment Likely exploitable
CWE CWE-120

Description: The OEMSTRCPY macro expands to sprintf without bounds checking. Any caller passing an attacker-controlled source string that exceeds the destination buffer size will trigger a buffer overflow. This macro is used throughout the codebase for string operations.

Evidence

Exploitation scenario: Attacker provides a long filename, path, or configuration string that flows into any OEMSTRCPY call.

Scanner confirmation: multi_agent_ai rule V-001 flagged this pattern.

Production code: This file is in the production codebase, not test-only code.

Changes

  • native/compiler_base.h

Behavior Preservation

The change is scoped to 1 file on the vulnerable path; it only tightens handling of untrusted input and leaves valid inputs unaffected.


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