VirtualBox

Changeset 87638 in vbox


Ignore:
Timestamp:
Feb 8, 2021 1:36:18 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142675
Message:

Audio/HDA: Relaxed transfer amount checks a bit in hdaR3StreamTransfer() if HDA_STRICT is not set. ticketoem2ref:36

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/HDAStream.cpp

    r87604 r87638  
    10861086
    10871087    Assert(cbToProcess);                                                     /* Nothing to process when there should be data. Accounting bug? */
    1088     AssertStmt(cbToProcess <= cbToProcessMax, cbToProcess = cbToProcessMax); /* More data to process than maximum allowed. */
     1088
     1089    /* More data to process than maximum allowed? */
     1090#ifdef HDA_STRICT
     1091    AssertStmt(cbToProcess <= cbToProcessMax, cbToProcess = cbToProcessMax);
     1092#else
     1093    if (cbToProcess > cbToProcessMax)
     1094        cbToProcess = cbToProcessMax;
     1095#endif
    10891096
    10901097    uint32_t cbProcessed = 0;
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