kmodloader: fix out-of-bound access when parsing .modinfo
authorYousong Zhou <yszhou4tech@gmail.com>
Fri, 13 Jan 2017 17:00:33 +0000 (01:00 +0800)
committerFelix Fietkau <nbd@nbd.name>
Sun, 15 Jan 2017 17:52:42 +0000 (18:52 +0100)
commit9371411715c8dd882f1d65a712f1f38b6d38d01f
tree7ac73a1d3968c23624f1fe23a2044211b56cc77c
parenta62c946ecdced9468ad16738325ee322029b0476
kmodloader: fix out-of-bound access when parsing .modinfo

Fixes output of "modinfo nf_conntrack_ipv4"

    module:         /lib/modules/4.4.40/nf_conntrack_ipv4.ko
    license:        GPL
    alias:          ip_conntrack
    alias:          nf_conntrack-2
    depends:        nf_conntrack,nf_defrag_ipv4
    src:            %pI4 dst=%pI4

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
kmodloader.c