I've come across a few S-Record and Intel HEX files (probably created by Windows software) that have Windows style \r\n line terminators. As far as I can tell, the standard line-endings for these files types is whatever the OS the file was created on uses.
Adding \r? to the regex for matching these firmware file types makes so that they are recognized by binwalk.
@devttys0 - it has been a while without hearing anything on this (or quite a few other PRs), is binwalk still being maintained, looking for new maintainers, etc?
I've come across a few S-Record and Intel HEX files (probably created by Windows software) that have Windows style
\r\n
line terminators. As far as I can tell, the standard line-endings for these files types is whatever the OS the file was created on uses.Adding
\r?
to the regex for matching these firmware file types makes so that they are recognized by binwalk.