Re: [PATCH][next] udf: Fix undefined behavior bug in struct udf_fileident_iter

2023-10-03 Thread Jan Kara
On Mon 02-10-23 18:14:26, Gustavo A. R. Silva wrote: > `struct fileIdentDesc` is a flexible structure, which means that it > contains a flexible-array member at the bottom. This could potentially > lead to an overwrite of the objects following `fi` in `struct > udf_fileident_iter` at run-time. > >

Re: [PATCH][next] udf: Fix undefined behavior bug in struct udf_fileident_iter

2023-10-02 Thread Kees Cook
On Mon, Oct 02, 2023 at 06:14:26PM +0200, Gustavo A. R. Silva wrote: > `struct fileIdentDesc` is a flexible structure, which means that it > contains a flexible-array member at the bottom. This could potentially > lead to an overwrite of the objects following `fi` in `struct > udf_fileident_iter` a

[PATCH][next] udf: Fix undefined behavior bug in struct udf_fileident_iter

2023-10-02 Thread Gustavo A. R. Silva
`struct fileIdentDesc` is a flexible structure, which means that it contains a flexible-array member at the bottom. This could potentially lead to an overwrite of the objects following `fi` in `struct udf_fileident_iter` at run-time. Fix this by placing the declaration of object `fi` at the end of