VirtualBox

Changeset 89446 in vbox for trunk/include


Ignore:
Timestamp:
Jun 1, 2021 11:33:21 PM (4 years ago)
Author:
vboxsync
Message:

PDMAudioPropsAreValid: limit channels to PDMAUDIO_MAX_CHANNELS. bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmaudioinline.h

    r89423 r89446  
    10411041
    10421042    AssertReturn(pProps->cChannelsX != 0, false);
     1043    AssertReturn(pProps->cChannelsX <= PDMAUDIO_MAX_CHANNELS, false);
    10431044    AssertMsgReturn(   pProps->cbSampleX == 1 || pProps->cbSampleX == 2 || pProps->cbSampleX == 4  || (pProps->cbSampleX == 8 && pProps->fRaw),
    10441045                    ("%u\n", pProps->cbSampleX), false);
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