]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commit
Fix array out of bounds problem
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Mon, 30 Jun 2008 17:37:28 +0000 (10:37 -0700)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Mon, 30 Jun 2008 17:37:28 +0000 (10:37 -0700)
commitf493dc30094d282d6a76ef8f71753a6d48981f1f
treea5c5416473d0bb6426c5d4e0ec74ef2bda8bba27
parent4ffc44ca7c1ec7adb980b67ae1e1c8fa772777f1
Fix array out of bounds problem

The current kernel generates 71 possible header fields, but
MAX_FIELDS in lnstat is only 64. This leads to referencing outside
of the array. To fix, increase size of array and chop off parsing
at MAX_FIELDS - 1.
misc/lnstat.c