Merge pull request #19372 from cotequeiroz/libgd
[feed/packages.git] / net / hping3 / patches / 190_ip_optlen_conflicting_types.patch
1 Author: Michael Tautschnig <mt@debian.org>
2 Subject: Conflicting types for variable ip_optlen
3 - globals.h: extern char ip_optlen;
4 - main.c: unsigned ip_optlen;
5 Undefined behaviour if the value of ip_optlen exceeds 127 for
6 any architecture with signed char type.
7 Bug-Debian: https://bugs.debian.org/688458
8
9 --- a/main.c
10 +++ b/main.c
11 @@ -156,7 +156,7 @@ unsigned char
12 lsr [255] = {0},
13 ssr [255] = {0};
14
15 -unsigned
16 +char
17 ip_optlen = 0;
18
19 struct sockaddr_in