[Qemu-devel] [PATCH v5 0/2] Implement Hex file loader and add test case

Su Hang posted 2 patches 6 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1524206732-7729-1-git-send-email-suhang16@mails.ucas.ac.cn
Test checkpatch passed
Test docker-build@min-glib passed
Test docker-mingw@fedora passed
Test s390x passed
There is a newer version of this series
MAINTAINERS                          |   6 +
hw/arm/boot.c                        |  18 ++-
hw/core/loader.c                     | 253 +++++++++++++++++++++++++++++++++++
include/hw/loader.h                  |  14 ++
tests/Makefile.include               |   2 +
tests/hex-loader-check-data/test.hex |  11 ++
tests/hexloader-test.c               |  56 ++++++++
7 files changed, 355 insertions(+), 5 deletions(-)
create mode 100644 tests/hex-loader-check-data/test.hex
create mode 100644 tests/hexloader-test.c
[Qemu-devel] [PATCH v5 0/2] Implement Hex file loader and add test case
Posted by Su Hang 6 years ago
These series of patchs implement Intel Hexadecimal File loader and
add QTest testcase to verify the correctness of Loader.

v1: Basic version.
v2: Replace `do{}while(cond);` block with `for(;;)` block.
v3: Add two new files information in MAINTAINERS.
v4: Correct the 'test.hex' path in hexloader-test.c.
v5: Split huge parse_hex_blob() function into four small function;
    Add check for memory bounds;
    Check validation for Record type;
    Replace function ctoh() with glib function g_ascii_xdigit_value();
    Remove check for '.hex' suffix;
    Remove unnecessary type cast;
    Remove duplicate zero-initialization;
    Correct typos;

Su Hang (2):
  Implement .hex file loader
  Add QTest testcase for the Intel Hexadecimal Object File Loader.

 MAINTAINERS                          |   6 +
 hw/arm/boot.c                        |  18 ++-
 hw/core/loader.c                     | 253 +++++++++++++++++++++++++++++++++++
 include/hw/loader.h                  |  14 ++
 tests/Makefile.include               |   2 +
 tests/hex-loader-check-data/test.hex |  11 ++
 tests/hexloader-test.c               |  56 ++++++++
 7 files changed, 355 insertions(+), 5 deletions(-)
 create mode 100644 tests/hex-loader-check-data/test.hex
 create mode 100644 tests/hexloader-test.c

-- 
2.7.4