Skip to content

fix: the print_util in print_util.h#1876

Open
orbisai0security wants to merge 1 commit intokrahets:mainfrom
orbisai0security:fix-fix-v-001-strcpy-buffer-overflow-print-util
Open

fix: the print_util in print_util.h#1876
orbisai0security wants to merge 1 commit intokrahets:mainfrom
orbisai0security:fix-fix-v-001-strcpy-buffer-overflow-print-util

Conversation

@orbisai0security
Copy link
Copy Markdown

Summary

Fix critical severity security issue in codes/c/utils/print_util.h.

Vulnerability

Field Value
ID V-001
Severity CRITICAL
Scanner multi_agent_ai
Rule V-001
File codes/c/utils/print_util.h:68

Description: The print_util.h file uses strcpy() without bounds checking to copy a string into trunk->str. strcpy() does not validate that the destination buffer is large enough to hold the source string, allowing an attacker to overflow the buffer by providing a string longer than the allocated size.

Changes

  • codes/c/utils/print_util.h

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • Code review passed

Automated security fix 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