[PATCH v2] ctf-reader: Fix length in dynamic array definition

Dodji Seketeli dodji@seketeli.org
Tue Dec 14 11:20:10 GMT 2021


"Guillermo E. Martinez via Libabigail" <libabigail@sourceware.org> a
écrit:

> Defining an array type with dynamic length, node `subrange'
> in the abixml file doesn't write the accurate `length'
> property `infinite', instead `1' is written:
>     <subrange length='1' .../>
>
> So, member function `array_type_def::subrange_type::is_infinite'
> is set when `upper_bound' value is equal to `0'.
>
> 	* src/abg-ctf-reader.cc (process_ctf_array_type):
> 	set subrange_type::is_infinite when `upper_bound' value
> 	is equal to `0'.
>
> Signed-off-by: Guillermo E. Martinez <guillermo.e.martinez@oracle.com>

Applied to master.  Thanks!

Cheers,

-- 
		Dodji


More information about the Libabigail mailing list