loader: cd9660_open() warn: is 'buf' large enough for 'struct iso_primary_descriptor'?
Clean up smatch warning.
allocate buffer space with size:
MAX(ISO_DEFAULT_BLOCK_SIZE, sizeof (struct iso_primary_descriptor))
Testing done: build/install/boot. Also verify disasm output we in fact do get buffer size 2048.
Updated by Electric Monk over 2 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit e58ba7f235f59e7b79c7d4ce4fb02b7adc47273e Author: Toomas Soome <email@example.com> Date: 2019-12-16T16:48:39.000Z 12074 loader: cd9660_open() warn: is 'buf' large enough for 'struct iso_primary_descriptor'? Reviewed by: John Levon <firstname.lastname@example.org> Reviewed by: C Fraire <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>