VirtualBox

Changeset 65848 in vbox


Ignore:
Timestamp:
Feb 23, 2017 9:06:10 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
113617
Message:

libs/xpcom: no memcpy with a zero size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/nsprpub/pr/src/io/prlayer.c

    r1 r65848  
    668668        {
    669669            /* what we did is still okay */
    670             memcpy(
    671                 names, identity_cache.name,
    672                 identity_cache.length * sizeof(char*));
     670            if (identity_cache.length)
     671                memcpy(
     672                    names, identity_cache.name,
     673                    identity_cache.length * sizeof(char*));
    673674            old = identity_cache.name;
    674675            identity_cache.name = names;
Note: See TracChangeset for help on using the changeset viewer.

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