Re: [PATCH v3 6/7] migration: Fix arrays of pointers in JSON writer

2025-01-09 Thread Peter Xu
On Thu, Jan 09, 2025 at 03:52:48PM -0300, Fabiano Rosas wrote: > Currently, if an array of pointers contains a NULL pointer, that > pointer will be encoded as '0' in the stream. Since the JSON writer > doesn't define a "pointer" type, that '0' will now be an uint8, which > is different from the ori

[PATCH v3 6/7] migration: Fix arrays of pointers in JSON writer

2025-01-09 Thread Fabiano Rosas
Currently, if an array of pointers contains a NULL pointer, that pointer will be encoded as '0' in the stream. Since the JSON writer doesn't define a "pointer" type, that '0' will now be an uint8, which is different from the original type being pointed to, e.g. struct. (we're further calling uint8