Changeset 104280 in vbox
- Timestamp:
- Apr 10, 2024 4:48:47 PM (10 months ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r103005 r104280 731 731 default: 732 732 ASSERT_GUEST_MSG_FAILED(("cb=%u off=%RGp\n", cb, off)); /** @todo how the heck should this work? Split it, right? */ 733 rcStrict = VINF_IOM_MMIO_UNUSED_00; 733 734 break; 734 735 } -
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r99739 r104280 3814 3814 case 4: rc = pcnetR3MmioReadU32(pDevIns, pThis, pThisCC, off, (uint32_t *)pv); break; 3815 3815 default: 3816 memset(pv, 0, cb); 3816 3817 rc = PDMDevHlpDBGFStop(pDevIns, RT_SRC_POS, "pcnetR3MmioRead: unsupported op size: address=%RGp cb=%u\n", off, cb); 3818 break; 3817 3819 } 3818 3820 STAM_PROFILE_ADV_STOP(&pThis->CTX_SUFF_Z(StatMMIORead), a); -
trunk/src/VBox/Devices/USB/DevXHCI.cpp
r104125 r104280 4564 4564 unsigned uDCI; 4565 4565 4566 RT_ZERO(dc_inp); 4567 4566 4568 Assert(uSlotID); 4567 4569 LogFlowFunc(("Slot ID %u, input control context @ %RGp\n", uSlotID, GCPhysInpCtx)); … … 4645 4647 /// @todo Check input EP contexts according to 6.2.3.2 4646 4648 } 4647 /** @todo r=bird: Looks like MSC is right that dc_inp can be used uninitalized.4648 *4649 * However, this function is so hard to read I'm leaving the exorcism of it to4650 * the author and just zeroing it in the mean time.4651 *4652 */4653 else4654 RT_ZERO(dc_inp);4655 4656 4649 /* Read the output Slot Context plus all Endpoint Contexts up to and 4657 4650 * including the one with the highest 'add' or 'drop' bit set. -
trunk/src/VBox/Devices/VirtIO/VirtioCore.cpp
r102875 r104280 865 865 break; 866 866 } 867 /* Check if the limit has been reached for input chain (see section 2.4.4.1 of virtio 1.0 spec). */ 868 if (cSegsIn >= RT_ELEMENTS(pVirtqBuf->aSegsIn)) 869 { 870 LogRelMax(64, ("Too many input descriptors (cSegsIn=%u).\n", cSegsIn)); 871 break; 872 } 873 /* Check if the limit has been reached for output chain (see section 2.4.4.1 of virtio 1.0 spec). */ 874 if (cSegsOut >= RT_ELEMENTS(pVirtqBuf->aSegsOut)) 875 { 876 LogRelMax(64, ("Too many output descriptors (cSegsOut=%u).\n", cSegsOut)); 877 break; 878 } 867 879 RT_UNTRUSTED_VALIDATED_FENCE(); 868 880 … … 1978 1990 PVIRTIOCORE pVirtio = PDMINS_2_DATA(pDevIns, PVIRTIOCORE); 1979 1991 PVIRTIOCORECC pVirtioCC = PDMINS_2_DATA_CC(pDevIns, PVIRTIOCORECC); 1980 AssertReturn(cb == 1 || cb == 2 || cb == 4, V ERR_INVALID_PARAMETER);1992 AssertReturn(cb == 1 || cb == 2 || cb == 4, VINF_IOM_MMIO_UNUSED_FF); 1981 1993 Assert(pVirtio == (PVIRTIOCORE)pvUser); RT_NOREF(pvUser); 1982 1994 … … 2000 2012 { 2001 2013 ASSERT_GUEST_MSG_FAILED(("Bad read access to mapped capabilities region: off=%RGp cb=%u\n", off, cb)); 2014 memset(pv, 0xFF, cb); 2002 2015 rcStrict = PDMDevHlpDBGFStop(pDevIns, RT_SRC_POS, 2003 2016 "virtioMmioRead: Bad MMIO access to capabilities, offset=%RTiop cb=%08x\n", off, cb);
Note:
See TracChangeset
for help on using the changeset viewer.