OSDN Git Service

fix typo in table for getprotoent that caused out-of-bound reads
authorRich Felker <dalias@aerifal.cx>
Thu, 13 Feb 2014 17:24:40 +0000 (12:24 -0500)
committerRich Felker <dalias@aerifal.cx>
Thu, 13 Feb 2014 17:24:40 +0000 (12:24 -0500)
commiteb375ef795a7e810a24d8b45c680be365a402a91
tree345c44269883c89613fe4fd4ab571876b97ba677
parent8011614da008032642aa8292c3fd079bf7a8843d
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