summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-02-13 12:24:40 -0500
committerRich Felker <dalias@aerifal.cx>2014-02-13 12:24:40 -0500
commiteb375ef795a7e810a24d8b45c680be365a402a91 (patch)
tree345c44269883c89613fe4fd4ab571876b97ba677 /src
parent8011614da008032642aa8292c3fd079bf7a8843d (diff)
downloadmusl-eb375ef795a7e810a24d8b45c680be365a402a91.tar.gz
musl-eb375ef795a7e810a24d8b45c680be365a402a91.tar.bz2
musl-eb375ef795a7e810a24d8b45c680be365a402a91.tar.xz
musl-eb375ef795a7e810a24d8b45c680be365a402a91.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/network/proto.c2
1 files changed, 1 insertions, 1 deletions
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"
};