Skip to content

fix: remove unsafe exec() in ir_signal_generator.c#1

Open
orbisai0security wants to merge 2 commits into
temboohms68:masterfrom
orbisai0security:fix-v001-unsafe-string-format-specifiers
Open

fix: remove unsafe exec() in ir_signal_generator.c#1
orbisai0security wants to merge 2 commits into
temboohms68:masterfrom
orbisai0security:fix-v001-unsafe-string-format-specifiers

Conversation

@orbisai0security

Copy link
Copy Markdown

Summary

Fix critical severity security issue in ir_signal_generator.c.

Vulnerability

Field Value
ID V-001
Severity CRITICAL
Scanner multi_agent_ai
Rule V-001
File ir_signal_generator.c:1
CWE CWE-120

Description: The ir_signal_generator.c firmware uses unsafe C string functions (strcpy, sprintf, gets) without bounds checking when processing IR signal data such as signal names, protocol identifiers, or encoded payloads. On embedded platforms without operating system memory protection, a stack or heap buffer overflow caused by an oversized input can overwrite return addresses or function pointers, enabling arbitrary code execution.

Changes

  • ir_signal_generator.c

Verification

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

Automated security fix by OrbisAI Security

temboohms68 and others added 2 commits May 14, 2026 04:46
Automated security fix generated by Orbis Security AI
@temboohms68 temboohms68 force-pushed the master branch 28 times, most recently from 10c4c4a to 58eccf2 Compare May 17, 2026 20:12
@temboohms68 temboohms68 force-pushed the master branch 30 times, most recently from 5c176f8 to 21439f3 Compare May 23, 2026 23:14
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.

2 participants