x25: Patch to fix bug 15678 - x25 accesses fields beyond end of packet.
authorJohn Hughes <john@calva.com>
Thu, 8 Apr 2010 04:29:25 +0000 (21:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Apr 2010 04:29:25 +0000 (21:29 -0700)
commitf5eb917b861828da18dc28854308068c66d1449a
treeaa45d1a809abbe426b55dc89b8167e5a6609d418
parentfd218cf9557b9bf7061365a8fe7020a56d3f767c
x25: Patch to fix bug 15678 - x25 accesses fields beyond end of packet.

Here is a patch to stop X.25 examining fields beyond the end of the packet.

For example, when a simple CALL ACCEPTED was received:

10 10 0f

x25_parse_facilities was attempting to decode the FACILITIES field, but this
packet contains no facilities field.

Signed-off-by: John Hughes <john@calva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/x25.h
net/x25/af_x25.c
net/x25/x25_facilities.c
net/x25/x25_in.c