mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-18 12:37:40 +07:00
socket: prevent signed integer overflow
src/core/socket.c:588:25: error: overflow in implicit constant conversion src/core/socket.c:589:17: error: overflow in implicit constant conversion
This commit is contained in:
parent
89154bd4ac
commit
c65a0b1466
@ -584,7 +584,7 @@ static int instance_from_socket(int fd, unsigned nr, char **instance) {
|
||||
}
|
||||
|
||||
case AF_INET6: {
|
||||
static const char ipv4_prefix[] = {
|
||||
static const unsigned char ipv4_prefix[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFF, 0xFF
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user