VirtualBox

Changeset 40206 in vbox


Ignore:
Timestamp:
Feb 22, 2012 8:31:10 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76374
Message:

iprt/isofs: gcc warning and 32-bit file size limit explanation

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/isofs.h

    r39515 r40206  
    194194 * Retrieves the offset + length (both in bytes) of a given file
    195195 * stored in the ISO.
     196 * @note    According to the standard, a file cannot be larger than 2^32-1 bytes.
     197 *          Therefore using size_t / uint32_t is not a problem.
    196198 *
    197199 * @return  IPRT status code.
  • trunk/src/VBox/Main/src-client/GuestCtrlImplTasks.cpp

    r39905 r40206  
    557557                else
    558558                {
     559                    /* Note: Using size_t here is possible because the file size is
     560                     *       stored as 32-bit value in the ISO 9660 file system. */
    559561                    size_t cbToRead = lFileSize;
    560562                    size_t cbTransfered = 0;
     
    600602                    {
    601603                        if (   cbTransfered
    602                             && (cbTransfered != lFileSize))
     604                            && (cbTransfered != (size_t)lFileSize))
    603605                        {
    604606                            /*
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