]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-domain.c
Update some tests files if the packet time is > 2038-01-19 03:14:07 UTC
[tcpdump] / print-domain.c
index d98cd11c00544198eb8c320c570e8e2346f57756..dcbd982cb4e3a520aca1bfd6e2f78512e1a2304f 100644 (file)
@@ -839,6 +839,10 @@ ns_rprint(netdissect_options *ndo,
        case T_URI:
                if (!ND_TTEST_LEN(cp, len))
                        return(NULL);
+               if (len < 4) {
+                       ND_PRINT(" len %u is too short (< 4)", len);
+                       break;
+               }
                ND_PRINT(" %u %u ", GET_BE_U_2(cp), GET_BE_U_2(cp + 2));
                if (nd_printn(ndo, cp + 4, len - 4, ndo->ndo_snapend))
                        return(NULL);