Re: [PATCH 1/2] cmd: fdt: Fix iteration over elements above index 2 in fdt get

2022-11-14 Thread Heinrich Schuchardt
On 11/13/22 21:45, Marek Vasut wrote: Always increment both the iterator and pointer into the string property value by length of the current element + 1 (to cater for the string delimiter), otherwise the element extracted from the string property value would be extracted from an offset that is mu

[PATCH 1/2] cmd: fdt: Fix iteration over elements above index 2 in fdt get

2022-11-13 Thread Marek Vasut
Always increment both the iterator and pointer into the string property value by length of the current element + 1 (to cater for the string delimiter), otherwise the element extracted from the string property value would be extracted from an offset that is multiple of the length of the first elemen