From eb375ef795a7e810a24d8b45c680be365a402a91 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 13 Feb 2014 12:24:40 -0500 Subject: fix typo in table for getprotoent that caused out-of-bound reads this was unlikely to lead to any crash or dangerous behavior, but caused adjacent string constants to be treated as part of the protocols table, possibly returning nonsensical results for unknown protocol names/numbers or when getprotoent was called in a loop to enumerate all protocols. --- src/network/proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network/proto.c') diff --git a/src/network/proto.c b/src/network/proto.c index 031003ad..c569232f 100644 --- a/src/network/proto.c +++ b/src/network/proto.c @@ -13,7 +13,7 @@ static const unsigned char protos[][6] = { "\014pup", "\021udp", "\026idp", - "\377raw" + "\377raw", "\0\0" }; -- cgit v1.2.1