Bug 593 - dpaa2 PMD APIs is missing input validation
Summary: dpaa2 PMD APIs is missing input validation
Status: UNCONFIRMED
Alias: None
Product: DPDK
Classification: Unclassified
Component: ethdev (show other bugs)
Version: unspecified
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Hemant Agrawal
URL:
Depends on:
Blocks:
 
Reported: 2020-12-04 17:17 CET by Ferruh YIGIT
Modified: 2021-03-09 06:32 CET (History)
1 user (show)



Attachments

Description Ferruh YIGIT 2020-12-04 17:17:31 CET
1)
struct rte_flow *
rte_pmd_dpaa2_mux_flow_create(uint32_t dpdmux_id,
                              struct rte_flow_item *pattern[],
                              struct rte_flow_action *actions[])

'- 'pattern' & 'actions' & 'pattern[0]' & 'actions[0]', should be checked against NULL before using them


2)
int
rte_pmd_dpaa2_set_custom_hash(uint16_t port_id,
                              uint16_t offset,
                              uint8_t size)

- 'port_id' should be checked if it is valid and if it is 'dpaa2' port or not
Comment 1 Ajit Khaparde 2021-03-09 05:06:38 CET
Hemant, please take a look. Thanks
Comment 2 Hemant Agrawal 2021-03-09 06:32:50 CET
Thanks. we will fix it.

Note You need to log in before you can comment on or make changes to this bug.