Skip to content

Commit

Permalink
add missing size validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ved-rivos committed Jun 27, 2024
1 parent cefe498 commit 2a66e75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions iommu_ref_model/libiommu/src/iommu_reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,7 @@ reset_iommu(uint8_t num_hpm, uint8_t hpmctr_bits, uint16_t eventID_mask,
g_offset_to_size[i] = 0xFF;

g_offset_to_size[CAPABILITIES_OFFSET] = 8;
g_offset_to_size[CAPABILITIES_OFFSET + 4] = 8;
g_offset_to_size[FCTRL_OFFSET] = 4;
g_offset_to_size[DDTP_OFFSET] = 8;
g_offset_to_size[DDTP_OFFSET + 4] = 8;
Expand Down

0 comments on commit 2a66e75

Please sign in to comment.