Petr Tesarik f42483d776 Allow setting up to 8 bytes with the generic loader
The documentation for the generic loader says that "the maximum size of
the data is 8 bytes". However, attempts to set data-len=8 trigger the
following assertion failure:

../hw/core/generic-loader.c:59: generic_loader_reset: Assertion `s->data_len < sizeof(s->data)' failed.

The type of s->data is uint64_t (i.e. 8 bytes long), so I believe this
assert should use <= instead of <.

Fixes: e481a1f63c93 ("generic-loader: Add a generic loader")
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20220120092715.7805-1-ptesarik@suse.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2022-02-16 12:24:18 +10:00
..
2022-02-06 04:33:50 -05:00
2022-02-08 10:56:28 +00:00
2022-02-15 19:30:33 +00:00
2022-02-02 19:54:30 +00:00
2022-01-29 15:55:54 +00:00
2022-01-29 15:55:54 +00:00
2022-02-09 09:08:55 +01:00
2022-01-29 15:55:54 +00:00
2022-01-13 10:58:05 +01:00