On 2/26/22 08:07, Peter Maydell wrote:
Currently if qemu_try_memalign() is asked to allocate 0 bytes, we assert.
Instead return NULL; this is in line with the posix_memalign() API,
and is valid to pass to _aligned_free() (which will do nothing).
This change is a preparation for sharing the qemu_try_memalign()
code between Windows and POSIX -- at the moment only the Windows
version has the assert that size != 0.
Signed-off-by: Peter Maydell<peter.mayd...@linaro.org>
---
util/oslib-win32.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
That would be my fault, I believe.
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
r~