Quoting r. Eitan Zahavi <eitan at mellanox.co.il>:
> p++;
> - port_num = strtoul(p, &q, 10);
> + port_num = (uint8_t)strtoul(p, &q, 10);
> if (q && !isspace(*q)) {
Would it make sense to range-check the value before casting it away?
--
MST