···1#ifndef _XT_LED_H2#define _XT_LED_H3004struct xt_led_info {5 char id[27]; /* Unique ID for this trigger in the LED class */6 __u8 always_blink; /* Blink even if the LED is already on */
···1#ifndef _XT_LED_H2#define _XT_LED_H34+#include <linux/types.h>5+6struct xt_led_info {7 char id[27]; /* Unique ID for this trigger in the LED class */8 __u8 always_blink; /* Blink even if the LED is already on */
···50 struct ipv6_opt_hdr _hdr;51 int hdrlen;5253- /* Is there enough space for the next ext header? */54- if (len < (int)sizeof(struct ipv6_opt_hdr))55- return false;56 /* No more exthdr -> evaluate */57 if (nexthdr == NEXTHDR_NONE) {58 temp |= MASK_NONE;59 break;60 }00061 /* ESP -> evaluate */62 if (nexthdr == NEXTHDR_ESP) {63 temp |= MASK_ESP;
···50 struct ipv6_opt_hdr _hdr;51 int hdrlen;5200053 /* No more exthdr -> evaluate */54 if (nexthdr == NEXTHDR_NONE) {55 temp |= MASK_NONE;56 break;57 }58+ /* Is there enough space for the next ext header? */59+ if (len < (int)sizeof(struct ipv6_opt_hdr))60+ return false;61 /* ESP -> evaluate */62 if (nexthdr == NEXTHDR_ESP) {63 temp |= MASK_ESP;
···135{136 struct xt_cluster_match_info *info = par->matchinfo;137138- if (info->node_mask >= (1 << info->total_nodes)) {000000139 printk(KERN_ERR "xt_cluster: this node mask cannot be "140 "higher than the total number of nodes\n");141 return false;
···135{136 struct xt_cluster_match_info *info = par->matchinfo;137138+ if (info->total_nodes > XT_CLUSTER_NODES_MAX) {139+ printk(KERN_ERR "xt_cluster: you have exceeded the maximum "140+ "number of cluster nodes (%u > %u)\n",141+ info->total_nodes, XT_CLUSTER_NODES_MAX);142+ return false;143+ }144+ if (info->node_mask >= (1ULL << info->total_nodes)) {145 printk(KERN_ERR "xt_cluster: this node mask cannot be "146 "higher than the total number of nodes\n");147 return false;