Skip to content

lib: fwts_acpi_tables: Ensure dir_entries is initialized to NULL#16

Open
ColinIanKing wants to merge 3 commits intomasterfrom
fix-missing-scandir-null-ptr-init
Open

lib: fwts_acpi_tables: Ensure dir_entries is initialized to NULL#16
ColinIanKing wants to merge 3 commits intomasterfrom
fix-missing-scandir-null-ptr-init

Conversation

@ColinIanKing
Copy link
Copy Markdown
Owner

The dir_entries should be initialized to NULL to be extra safe when using scandir. Fix this.

Fixes: 592a526 ("lib: fwts_acpi_tables: load tables in deterministically")

The dir_entries should be initialized to NULL to be extra safe when
using scandir. Fix this.

Fixes: 592a526 ("lib: fwts_acpi_tables: load tables in deterministically")
Signed-off-by: Colin Ian King <[email protected]>
The namelist should be initialized to NULL to be extra safe when
using scandir. Fix this.

Fixes: 1902bbb ("opal: mtd: Add OPAL MTD Validation")
Signed-off-by: Colin Ian King <[email protected]>
Static analysis is reporting that start - offset in the mmap call
could potentially underflow, so add a check for this unlikely
situation.

Signed-off-by: Colin Ian King <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant