OSDN Git Service

monitor: Fix integer overruns with EIR parsing
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 10 Oct 2013 13:51:18 +0000 (15:51 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 10 Oct 2013 13:51:18 +0000 (15:51 +0200)
commitf5e6af18d2b3f8900887a939af1cd34dc1728573
tree9544700c3b9b27cff9ad0c27366867f0cee51d30
parentf7773c7247e1cf460d4c816f05b8a82391a59cf9
monitor: Fix integer overruns with EIR parsing

For tracking how much has been parsed of the EIR we must use a greater
than uint8 integer to avoid having a large (e.g. 255) field length cause
our counter to wrap around and start from zero.
monitor/packet.c