Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/fs/udf



Am Fri, Mar 18, 2022 at 04:06:18PM +0000 schrieb Reinoud Zandijk:
> Module Name:	src
> Committed By:	reinoud
> Date:		Fri Mar 18 16:06:18 UTC 2022
> 
> Modified Files:
> 	src/sys/fs/udf: ecma167-udf.h
> 
> Log Message:
> Replace the variable field data[0] to data[1] to avoid undefined behaviour.

Just use a flexible array member, data[]. That gives essentially the
same behavior as the ancient GNU extension of [0] but sanitizers knows
what it means. That said, it is somewhat pointless in a packed data
structure...

Joerg


Home | Main Index | Thread Index | Old Index