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 over 4 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 48dd5e630c9b1773b7b10d08a3b90b6c9062d713 Author: Matthew Ahrens <firstname.lastname@example.org> Date: 2016-08-05T15:14:22.000Z 7261 nvlist code should enforce name length limit Reviewed by: Sebastien Roy <email@example.com> Reviewed by: George Wilson <firstname.lastname@example.org> Reviewed by: Robert Mustacchi <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>