Article View: NET.v7bugs
Article #10icheck
From: ucbvaxmark
Date: Sun, 18 May 1980 22:54
Date: Sun, 18 May 1980 22:54
16 lines
832 bytes
832 bytes
>From bill Thu Oct 18 01:41:53 1979 To: v7bugs Subj: bug in icheck Cc: sklower there is a bug in the icheck program due to the declaration of unsigned short s_fsize in <filsys.h>... in the places where XXX.s_fsize is used in comparisons in icheck.c, it should be cast to an integer. comparisons of the form if (YYY < XXX.s_fsize) are deadly, since YYY may be negative. since XXX.s_fsize is positive, but signed, YYY is treated as unsigned, and havoc results from the fact that the comparsion fails. if an inode has a (bad) negative block number in it (YYY < 0) then icheck will (hopefully) core dump or screw up in some other way. bill
Technical Details
Message-ID:
<anews.Aucbvax.106>Path:
arc1-ca.pugleaf.net!utzoo!duke!vax135!ucbvax!markShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!duke!vax135!ucbvax!mark From: ucbvax!mark Newsgroups: NET.v7bugs Subject: icheck Date: Sun, 18 May 1980 22:54:14 +0000 Message-ID: <anews.Aucbvax.106>