Re: [PATCH for-8.2 1/2] qdev: Fix crash in array property getter

2023-11-24 Thread Philippe Mathieu-Daudé
On 21/11/23 18:34, Kevin Wolf wrote: Passing an uninitialised list to visit_start_list() happens to work for the QObject output visitor because it treats the pointer as an opaque value and never dereferences it, but the string output visitor expects a valid list to check if it has more than one e

[PATCH for-8.2 1/2] qdev: Fix crash in array property getter

2023-11-21 Thread Kevin Wolf
Passing an uninitialised list to visit_start_list() happens to work for the QObject output visitor because it treats the pointer as an opaque value and never dereferences it, but the string output visitor expects a valid list to check if it has more than one element. The existing code crashes with