Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Mar 1995 07:51:26 +0300
From:      "Andrey A. Chernov, Black Mage" <ache@astral.msk.su>
To:        current@FreeBSD.org, "Garrett A. Wollman" <wollman@lcs.mit.edu>
Cc:        dima@FreeBSD.org
Subject:   ATTENTION: VERY serious hidden bug in gethostbyname/gethostbyaddr!
Message-ID:  <SHE_aSlC3C@astral.msk.su>

next in thread | raw e-mail | index | archive | help
When program uses strtok() and call gethostbyname/addr after
it, strtok() memory becomes corrupted, because private function
init_services() from gethostnamaddr.c module uses strtok() too!
AND ONLY ONE STRTOK PARSER MAY BE ACTIVE AT ONCE. Now init_services()
strtok() corrupts program strtok() internal variables.
Garrett, please, get rid of strtok() in init_services()!

Currently this bug strongly affects at least tcp_wrapper.

-- 
Andrey A. Chernov        : And I rest so composedly,  /Now, in my bed,
ache@astral.msk.su       : That any beholder  /Might fancy me dead -
FidoNet: 2:5020/230.3    : Might start at beholding me,  /Thinking me dead.
RELCOM Team,FreeBSD Team :         E.A.Poe         From "For Annie" 1849



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?SHE_aSlC3C>