VirtualBox

Changeset 107768 in vbox


Ignore:
Timestamp:
Jan 15, 2025 12:17:44 PM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166903
Message:

Main/testcase/tstVBoxAPIXPCOM.cpp: Prevent theoretical buffer overflow in testcase, harmless, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstVBoxAPIXPCOM.cpp

    r107744 r107768  
    491491    if (!getenv("VBOX_XPCOM_HOME"))
    492492    {
    493         strcpy(szTmp, argv[0]);
     493        strncpy(szTmp, argv[0], sizeof(szTmp));
    494494        *strrchr(szTmp, '/') = '\0';
    495495        strcat(szTmp, "/..");
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette