File Input: discard data if compression error

Summary

When the File Input module encounters a compression error, it does not discard the broken data it just tried to decompress, but continues using it, leading to a crash.

Steps to reproduce

Open a file where compression errors are present in a data packet.

What is the current bug behavior?

Crash.

What is the expected correct behavior?

Ignore faulty data.

Execution environment information

  • OS: Linux
  • OS version: 5.4.38
  • DV version: master
  • DV installation type:
    • package manager
    • official download
    • manual compile

Possible fixes (optional)

We already check for decompression errors and log them. But then we just continue using the data. This is wrong, fix is to propagate the decompression error up the call stack and stop parsing of that packet, jumping to the next one, when an error is found.

Issue Planning (for developers only)

StartDate: 2020-06-03

DueDate: 2020-06-03