Richard Hughes
040ac626b5
dfu: Fill holes when reading SREC files
...
It is perfectly valid to have non-continuous ranges, so fill in any holes like
we do for Intel HEX files.
2019-02-06 14:48:48 +00:00
Richard Hughes
206b70120d
dfu: Simplify the SREC parser to avoid a crash with an invalid file
...
Splitting the file into lines does increase memory usage, but allows us to use
a much simpler parser design. This is just like we fixed IHEX a few weeks ago.
2019-01-31 16:05:34 +00:00
Richard Hughes
02c90d8a03
Remove the unused Emacs indenting headers from all source files
...
Fixes https://github.com/hughsie/fwupd/issues/636
2018-08-09 12:48:04 +01:00
Richard Hughes
fe221dc13d
trivial: Fix up some NULL/FALSE confusion
2018-05-29 09:33:44 +01:00
Mario Limonciello
51308e648a
Adjust all licensing to LGPL 2.1+ ( Closes : #526 )
2018-05-29 09:03:13 +01:00
Richard Hughes
7013c8c963
dfu: Make the SREC parser abort on a duplicate S0 header
2018-05-25 11:40:33 +01:00
Richard Hughes
38d064a7f3
dfu: Fix the SREC parser to correctly parse 32 bit address values
2018-05-25 11:40:12 +01:00
Richard Hughes
849d841ca9
dfu: Add a helper function for loading a DfuImage from a SREC file
...
Also, add the ability to start from a known device offset.
2018-05-23 21:06:24 +01:00
Richard Hughes
185f4a4791
dfu: Allow parsing SREC files without the optional S5 record
2018-05-03 19:58:31 +01:00
Richard Hughes
7c6b94118c
Add support for parsing Motorola S-record files
2018-05-01 09:16:19 +01:00