fix one more bug in the ksysguard network helper found by my fuzzer.
Diff Detail
Diff Detail
- Repository
- R106 KSysguard
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Comment Actions
I wonder whether this can actually happen, as that header is AFAICT added by the kernel and not from the network.
The Packet constructor has both dataLength and packetSize parameters, which are equal to the pcap header's caplen and len, respectively, and only the former specifies how much data is actually available in the buffer.
So the comparison has to use dataLength, like the code below.