]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commit
Bug#526329: iproute: Segfault on garbage lladdr
authorAndreas Henriksson <andreas@fatal.se>
Thu, 30 Apr 2009 14:50:50 +0000 (16:50 +0200)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Tue, 26 May 2009 22:18:05 +0000 (15:18 -0700)
commitcb2eb9997a0292a144968d117f4d831c155ca71d
treed44cb5ce6e80654f24730c4c13d5384aea525564
parentebde878097a4494c47e682aff16233f2fe6a495e
Bug#526329: iproute: Segfault on garbage lladdr

On tor, 2009-04-30 at 14:32 +0100, Timothy Baldwin wrote:
> Package: iproute
> Version: 20090324-1
> Severity: minor
>
>
> $ ip link set eth0 address help
> "help" is invalid lladdr.
> Segmentation fault
>
> Desipte the invalid command line arguments it shouldn't crash.
>

Callers need to check return value from ll_addr_a2n(). Patch below.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
ip/iplink.c