[NETFILTER]: SIP conntrack: fix out of bounds memory access
[deliverable/linux.git] / net / netfilter / nf_conntrack_sip.c
index c93fb37a54fc8dde78ab161b52d5df73662b960a..9dec115346784428f3b2a18a64873ce77299f2db 100644 (file)
@@ -312,7 +312,7 @@ static int skp_epaddr_len(struct nf_conn *ct, const char *dptr,
                dptr++;
        }
 
-       if (*dptr == '@') {
+       if (dptr <= limit && *dptr == '@') {
                dptr++;
                (*shift)++;
        } else
This page took 0.055735 seconds and 5 git commands to generate.