riscv-non-isa / riscv-iommu

RISC-V IOMMU Specification
https://jira.riscv.org/browse/RVG-55
Creative Commons Attribution 4.0 International
82 stars 16 forks source link

locate_device_context - overflow in uint8_t DDI[1] #253

Closed sometimesawake closed 1 year ago

sometimesawake commented 1 year ago

https://github.com/riscv-non-isa/riscv-iommu/blob/61026efa47a8a4fdcf301788044aba2308add3bf/iommu_ref_model/libiommu/src/iommu_device_context.c#L16

above DDI array should be of uint16_t as max value may exceed 8-bit.

ved-rivos commented 1 year ago

Thanks. Fixed the issue for DDT and PDT indices in PR #255