Richard Hughes
ccc79c9fbc
trivial: Split out strnsplit for future use
2019-01-31 16:05:34 +00:00
Richard Hughes
42c514764a
dfu: Ignore the SUB ASCII value
...
This is probably written by a non-free post-processing tool and can be ignored.
2019-01-22 14:43:13 +00:00
Richard Hughes
720b5deb00
dfu: Fix the parser to support extended segment addresses
...
Split the data into lines, which is less efficient but also much easier to
understand and debug.
2019-01-22 14:43:13 +00:00
Richard Hughes
f6a6fe8ec5
dfu: Support ihex files with leading comments
...
Also look for the EOF in the file.
2019-01-22 14:43:13 +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
Mario Limonciello
51308e648a
Adjust all licensing to LGPL 2.1+ ( Closes : #526 )
2018-05-29 09:03:13 +01:00
Richard Hughes
db211de617
dfu: Fix a potential DoS by limiting filling holes to 1MiB
2018-05-01 11:35:53 +01:00
Richard Hughes
ae252cd83c
trivial: Add some common functionality from reading and writing to a buffer
2017-12-08 20:07:09 +00:00
Richard Hughes
3bc2f3bbb6
trivial: Parse the IHEX record types 02 and 03
...
Although we don't quite do the right thing, we only need to typically work out
the start offset of the firmware. This fixes 'dfu-tool dump foo.hex' for files
produced for the ATMEL ATXMEGA architechure.
2017-11-18 11:06:38 +00:00
Richard Hughes
6a32b92ef8
dfu: Move some code to allow re-use
2017-11-02 19:08:51 +00:00
Richard Hughes
78c1e6c009
dfu: Correctly output Intel HEX files with > 16bit offset addresses
...
Also, fix the checksum to actually produce valid files...
2017-10-31 18:30:05 +00:00
Richard Hughes
1b1f9d7b6a
dfu: Support the IHEX record type 0x05
2017-10-26 08:48:20 +01:00
Richard Hughes
9e79223ecf
trivial: C99ify more for-loops
2017-09-28 09:23:52 +01:00
Richard Hughes
b3c13461e9
trivial: Use the error domain from libfwupd
...
This means we don't need to convert the error code in the dfu plugin.
2017-09-08 13:33:34 +01:00
Richard Hughes
fd931a962f
dfu: Remove the now-unused symtab support
2017-09-07 18:39:23 +01:00
Richard Hughes
68480a2069
trivial: Move the libdfu sources to the dfu plugin
2017-09-07 18:39:23 +01:00