VirtualBox

Ignore:
Timestamp:
Aug 9, 2014 12:05:21 PM (10 years ago)
Author:
vboxsync
Message:

strformatrt.cpp: Don't translate cchPrecision=0 to 16 for %Rhx* format types, only values less than zero, otherwise we will mistake 0 specified by the user and read beyond heap allocation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/strformatrt.cpp

    r50765 r52331  
    712712                    {
    713713                        uint8_t *pu8 = va_arg(*pArgs, uint8_t *);
    714                         if (cchPrecision <= 0)
     714                        if (cchPrecision < 0)
    715715                            cchPrecision = 16;
    716716                        if (pu8)
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