nvlist code should enforce name length limit
The nvlist/nvpair code stores the name length in a int16_t, therefore supporting names of up to 2^15 bytes. However, it does not enforce this, so if you pass a longer name, it will be silently truncated. The nvlist code should instead return an error.
Updated by Electric Monk almost 4 years ago
- % Done changed from 0 to 100
- Status changed from New to Closed
commit 48dd5e630c9b1773b7b10d08a3b90b6c9062d713 Author: Matthew Ahrens <email@example.com> Date: 2016-08-05T15:14:22.000Z 7261 nvlist code should enforce name length limit Reviewed by: Sebastien Roy <firstname.lastname@example.org> Reviewed by: George Wilson <email@example.com> Reviewed by: Robert Mustacchi <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>