···11#ifndef _XT_LED_H22#define _XT_LED_H3344+#include <linux/types.h>55+46struct xt_led_info {57 char id[27]; /* Unique ID for this trigger in the LED class */68 __u8 always_blink; /* Blink even if the LED is already on */
···5050 struct ipv6_opt_hdr _hdr;5151 int hdrlen;52525353- /* Is there enough space for the next ext header? */5454- if (len < (int)sizeof(struct ipv6_opt_hdr))5555- return false;5653 /* No more exthdr -> evaluate */5754 if (nexthdr == NEXTHDR_NONE) {5855 temp |= MASK_NONE;5956 break;6057 }5858+ /* Is there enough space for the next ext header? */5959+ if (len < (int)sizeof(struct ipv6_opt_hdr))6060+ return false;6161 /* ESP -> evaluate */6262 if (nexthdr == NEXTHDR_ESP) {6363 temp |= MASK_ESP;
···135135{136136 struct xt_cluster_match_info *info = par->matchinfo;137137138138- if (info->node_mask >= (1 << info->total_nodes)) {138138+ if (info->total_nodes > XT_CLUSTER_NODES_MAX) {139139+ printk(KERN_ERR "xt_cluster: you have exceeded the maximum "140140+ "number of cluster nodes (%u > %u)\n",141141+ info->total_nodes, XT_CLUSTER_NODES_MAX);142142+ return false;143143+ }144144+ if (info->node_mask >= (1ULL << info->total_nodes)) {139145 printk(KERN_ERR "xt_cluster: this node mask cannot be "140146 "higher than the total number of nodes\n");141147 return false;