Re: [dpdk-dev] [PATCH] lib: fix socket id type

2023-06-29 Thread Stephen Hemminger
On Tue, 27 Apr 2021 17:36:32 +0800 "Min Hu (Connor)" wrote: > From: Chengchang Tang > > The variable type of the current socket ID is uint8_t. When traversing all > nodes, the socket ID is compared with RTE_MAX_NUMA_NODES. Since > RTE_MAX_NUMA_NODES has not been verified, it may be larger than

[dpdk-dev] [PATCH] lib: fix socket id type

2021-04-27 Thread Min Hu (Connor)
From: Chengchang Tang The variable type of the current socket ID is uint8_t. When traversing all nodes, the socket ID is compared with RTE_MAX_NUMA_NODES. Since RTE_MAX_NUMA_NODES has not been verified, it may be larger than UCHAR_MAX theoretically. This would lead to an infinite loop. This patc