Patch #3--urgent

From: Andrew Valencia <vandys_at_nospam.org>
Date: Sat Feb 26 1994 - 14:03:41 PST

The following is the patch format of the bug you saw go by on the mailing
list yesterday. It's a real bug, and it'll corrupt your DOS filesystem,
so please apply this patch if you haven't patched it on your own already.
The original bug-fixer (Robert Mayer) supplied the appropriate fix, this
is the same thing as a patch.

                                                Andy

p.s. If Robert's ever in town I *will* buy him a beer for this one!

*** c:/tmp/T0AA.AAA Sat Feb 26 14:55:32 1994
--- fat.c Sat Feb 26 14:50:58 1994
***************
*** 132,144 ****
                  (dirents * sizeof(struct directory))/SECSZ;
          data0 *= SECSZ;
  
          /*
           * Get map of dirty sectors in FAT
           */
! dirtymapsize = roundup(nclust, SECSZ) / SECSZ;
          dirtymap = malloc(dirtymapsize);
          ASSERT(dirtymap, "fat_init: dirtymap");
          bzero(dirtymap, dirtymapsize);
  
          /*
           * Convert FAT-12 to FAT-16
--- 132,144 ----
                  (dirents * sizeof(struct directory))/SECSZ;
          data0 *= SECSZ;
  
          /*
           * Get map of dirty sectors in FAT
           */
! dirtymapsize = roundup(nclust*sizeof(ushort), SECSZ) / SECSZ;
          dirtymap = malloc(dirtymapsize);
          ASSERT(dirtymap, "fat_init: dirtymap");
          bzero(dirtymap, dirtymapsize);
  
          /*
           * Convert FAT-12 to FAT-16
Received on Sat Feb 26 14:30:46 1994

This archive was generated by hypermail 2.1.8 : Wed Sep 21 2005 - 21:02:10 PDT