netlink: Safely discard short packets
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 1 Aug 2013 16:36:39 +0000 (17:36 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 1 Aug 2013 16:49:02 +0000 (17:49 +0100)
commit975820aa67cb8f5f89eb968ec5397305e3b77bcf
tree5158f4404e2ef81ee4f267d9e8296c52b61d02ae
parentf0b0f54918621c9a12c21c63f037471f7a961a64
netlink: Safely discard short packets

Short packets arriving at the netlink should not be processed.

Previously, we suffered buffer read overruns.  In principle this might
be some kind of security problem, as it might make it possible to read
and have returned parts of the buffer which were used previously for
other data.  I haven't analysed this possibility in any detail.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
netlink.c