[PATCH 0/5] IHEX bug fix and some improvements

From: Andrey Smirnov
Date: Fri Dec 21 2018 - 02:28:57 EST


Everyone:

This series is a big-fix to a problem I encountered while using code
in <linux/ihex.h> bundled with a number of small improvmements. The
bug fix is in commit:

[PATCH 2/5] ihex: Check if zero-length record is at the end of the

Small improvmentes are in the rest and all of them are purely
optional. Hopefully each commit is self-explanatory.

Feedback is welcome!

Thanks,
Andrey Smirnov

NOTE: This series is expected to be applied on top of [fimrware-patch]

[firmware-patch] lkml.kernel.org/r/20181017182718.32740-1-andrew.smirnov@xxxxxxxxx

Andrey Smirnov (5):
ihex: Share code between ihex_validate_fw() and ihex_next_binrec()
ihex: Check if zero-length record is at the end of the blob
ihex: Simplify next record offset calculation
tools/firmware/ihex2fw: Simplify next record offset calculation
tools/firmware/ihex2fw: Replace explicit alignment with ALIGN

include/linux/ihex.h | 29 +++++++++++++++++++----------
tools/firmware/ihex2fw.c | 17 ++++++++++++++---
2 files changed, 33 insertions(+), 13 deletions(-)

--
2.19.1