Re: [PATCH v5 1/6] initramfs_test: add fill_cpio() inject_ox parameter
From: Petr Mladek
Date: Wed Apr 01 2026 - 09:24:55 EST
On Tue 2026-03-31 17:57:31, David Disseldorp wrote:
> fill_cpio() uses sprintf() to write out the in-memory cpio archive from
> an array of struct initramfs_test_cpio. This change allows callers to
> modify the cpio sprintf() format string so that future tests can
> intentionally corrupt the header with "0x" and "0X" prefixed fields.
>
> Signed-off-by: David Disseldorp <ddiss@xxxxxxx>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>
Best Regards,
Petr