Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site bbncc5.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!bbnccv!bbncc5!cspencer From: cspencer@bbncc5.UUCP (Clifford Spencer) Newsgroups: net.unix-wizards Subject: bug in hpecc() ? Message-ID: <672@bbncc5.UUCP> Date: Fri, 11-Oct-85 14:53:09 EDT Article-I.D.: bbncc5.672 Posted: Fri Oct 11 14:53:09 1985 Date-Received: Mon, 14-Oct-85 03:28:16 EDT Distribution: net Organization: Bolt Beranek and Newman, Cambridge, MA Lines: 23 In 4.2 and ULTRIX hp.c(hpecc) I see the following happening under the ECC case: npf--; /* because block in error is previous block */ * mpte = mbp->mba_map[npf+btop(byte)]; * (correct error here) * npf++; Why the fiddling with npf? What if npf is initially zero and byte < 512? If the error occurs in the first page of a transfer, isn't npf going to go negative and we will reference mba_map[-1] ? Can someone explain this? -cliff -- cliff spencer {harvard, ihnp4, decvax}!bbnccv!cspencer cspencer@bbncc5