]> git.proxmox.com Git - mirror_iproute2.git/commit
netem: fix out of bounds access in maketable
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 12 Apr 2017 17:10:44 +0000 (10:10 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 12 Apr 2017 17:13:14 +0000 (10:13 -0700)
commit2d3af1675ddffe3fd50a94ba5f91a13672d9e091
treebe7ffd37b7738719a379bdb3e78be3be92ee881b
parent5551ed44d394fac6e9a035dadb259580fbda84d3
netem: fix out of bounds access in maketable

The maketable program used to generate one of the configuration
files at build time for netem would access past the end of the array
for one input value. This is a bug inherited from original NISTnet.
Just fold the value, like other code there.

This is not a runtime error security problem.
It only impacts the build process if the build machine
had extra hardening enabled.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
netem/maketable.c