home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Bug_Fixes / Net.v7bugs / 0001 next >
Encoding:
Text File  |  1981-05-28  |  731 b   |  23 lines

  1. Aucbvax.106
  2. NET.v7bugs
  3. utzoo!duke!vax135!ucbvax!mark
  4. Sun May 18 22:54:14 1980
  5. icheck
  6. >From bill Thu Oct 18 01:41:53 1979
  7. To: v7bugs
  8. Subj: bug in icheck
  9. Cc:  sklower
  10.  
  11. there is a bug in the icheck program due to the declaration of
  12.     unsigned short s_fsize
  13. in <filsys.h>... in the places where XXX.s_fsize is used in comparisons
  14. in icheck.c, it should be cast to an integer.  comparisons of the form
  15.     if (YYY < XXX.s_fsize)
  16. are deadly, since YYY may be negative.  since XXX.s_fsize is positive,
  17. but signed, YYY is treated as unsigned, and havoc results from the fact
  18. that the comparsion fails.   if an inode has a (bad) negative block
  19. number in it (YYY < 0) then icheck will (hopefully) core dump or screw
  20. up in some other way.
  21.     bill
  22.  
  23.