diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-06-07 19:56:40 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-06-08 00:26:17 +0200 |
commit | 163b252e9925277c4b3fa240ac6bb0750ffc0592 (patch) | |
tree | 75bb4e3bfeeaf648f40dc53308996f709860b0be /src | |
parent | 0435516df8c6983faba4e691ff93bcf6f7400b04 (diff) |
meta: fix asan runtime error in tc handle
ASAN reports:
meta.c:92:17: runtime error: left shift of 34661 by 16 places cannot be represented in type 'int'
use 32-bit integer as tmp variable.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -73,7 +73,7 @@ static struct error_record *tchandle_type_parse(struct parse_ctx *ctx, else if (strcmp(sym->identifier, "none") == 0) handle = TC_H_UNSPEC; else if (strchr(sym->identifier, ':')) { - uint16_t tmp; + uint32_t tmp; char *colon; str = xstrdup(sym->identifier); |