Changeset 100 for trunk


Ignore:
Timestamp:
03/21/08 11:20:24 (16 years ago)
Author:
tim
Message:

fixed integer underflow bug

updated some documentation

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/devel/winntreg.txt

    r97 r100  
    23230x0000002C      D-Word      1
    24240x000001FC      D-Word      Sum of all D-Words from 0x00000000 to
    25 0x000001FB  //XOR of all words. Nigel
     25                            0x000001FB  //XOR of all words. Nigel
    2626
    2727I have analyzed more registry files (from multiple machines running
     
    161161                  (UNICODE!)
    162162
    163 The "lf"-record
     163The "lf"/"lh"/"ri"-record (hash list header)
    164164===============
    165165Offset      Size      Contents
    166 0x0000      Word      ID: ASCII-"lf" = 0x666C
     1660x0000      Word      ID: ASCII-"lf" = 0x666C  (or "lh" or "ri")
    1671670x0002      Word      number of keys
    1681680x0004      ????      Hash-Records
     
    172172Offset      Size      Contents
    1731730x0000      D-Word      Offset of corresponding "nk"-Record
    174 0x0004      D-Word      ASCII: the first 4 characters of the key-name, padded with 0-s. Case sensitiv!
    175 
     1740x0004      D-Word      ASCII: the first 4 characters of the key-name, padded with 0-s. Case sensitive!
     175                        (the hash value may be computed differently for the various header types
     176                         "lf"/"lh"/"ri"/etc)
    176177Keep in mind, that the value at 0x0004 is used for checking the data-consistency! If you change the
    177178key-name you have to change the hash-value too!
  • trunk/lib/range_list.c

    r99 r100  
    231231
    232232  /* Try to keep memory usage down */
    233   if(rl->size < (rl->elem_alloced - 2 * RANGE_LIST_ALLOC_SIZE))
     233  if(rl->size + 2 * RANGE_LIST_ALLOC_SIZE  < rl->elem_alloced)
    234234  {
    235235    tmp = (range_list_element**)realloc(rl->elements,
Note: See TracChangeset for help on using the changeset viewer.