[NETFILTER]: SIP conntrack: fix out of bounds memory access
[deliverable/linux.git] / net / ipv4 / netfilter / ip_conntrack_sip.c
index 571d27e2091028fff2f167290afe6dbc83249f45..11c588a10e6b5e7adf993f59a3ae5a8a6dd2cfd3 100644 (file)
@@ -292,7 +292,7 @@ static int skp_epaddr_len(const char *dptr, const char *limit, int *shift)
                dptr++;
        }
 
-       if (*dptr == '@') {
+       if (dptr <= limit && *dptr == '@') {
                dptr++;
                (*shift)++;
        } else
This page took 0.046724 seconds and 5 git commands to generate.