]> git.proxmox.com Git - mirror_iproute2.git/commit
xfrm: use memcpy to suppress gcc phony buffer overflow warning.
authorFan Du <fan.du@windriver.com>
Tue, 1 Oct 2013 04:09:05 +0000 (21:09 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 1 Oct 2013 04:09:05 +0000 (21:09 -0700)
commit99500b56d94dfa735a3d088fdbdde6c0c2638e78
tree20d68ff187e73d4bcfab7872d5b61c7b32840d9c
parent101847446e6a5e3ca370e65ebc462584934fce0e
xfrm: use memcpy to suppress gcc phony buffer overflow warning.

This bug is reported from below link:
https://bugzilla.redhat.com/show_bug.cgi?id=982761

An simplified command from its original reproducing method in bugzilla:
ip xfrm state add src 10.0.0.2 dst 10.0.0.1 proto ah spi 0x12345678 auth md5 12
will cause below spew from gcc.

Reported-by: Sohny Thomas <sthomas@linux.vnet.ibm.com>
ip/xfrm_state.c