ipa: Handle corrupt incoming messages without crashing

Attempt to read the three byte IPA header. If we read 0 then
the socket can be closed otherwise we need to read three bytes, if
we don't we do have a failure.

After having parsed the header we need to evaluate the length,
if the length is bigger than would fit into our buffer we will
ignore that and print an error.

This is fixing a crash when the BTS is crashing...
1 file changed
tree: bd6ff8ceaeeb58f873740162d5a23abb68000eb1
  1. hlrsync/
  2. libosmocore/
  3. linux-kernel/
  4. openbsc/
  5. rrlp-ephemeris/
  6. wireshark/