mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
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.
This commit is contained in:
parent
8011614da0
commit
eb375ef795
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ static const unsigned char protos[][6] = {
|
|||
"\014pup",
|
||||
"\021udp",
|
||||
"\026idp",
|
||||
"\377raw"
|
||||
"\377raw",
|
||||
"\0\0"
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue