Changeset 179 for releases/0.12.0


Ignore:
Timestamp:
03/13/10 13:00:15 (14 years ago)
Author:
tim
Message:

fixed a bug in time validation that improves recovery rates

Location:
releases/0.12.0
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • releases/0.12.0/include/regfi.h

    r172 r179  
    162162 /* Minimum time is Jan 1, 1990 00:00:00 */
    163163#define REGFI_MTIME_MIN_HIGH       0x01B41E6D
    164 #define REGFI_MTIME_MIN_LOW        0x26F98000
     164
    165165 /* Maximum time is Jan 1, 2290 00:00:00
    166166  * (We hope no one is using Windows by then...)
    167167  */
    168168#define REGFI_MTIME_MAX_HIGH       0x03047543
    169 #define REGFI_MTIME_MAX_LOW        0xC80A4000
    170169
    171170
  • releases/0.12.0/lib/regfi.c

    r173 r179  
    23992399   */
    24002400  if(unalloc
    2401      && ((ret_val->mtime.high < REGFI_MTIME_MIN_HIGH
    2402           && ret_val->mtime.low < REGFI_MTIME_MIN_LOW)
    2403          || (ret_val->mtime.high > REGFI_MTIME_MAX_HIGH
    2404              && ret_val->mtime.low > REGFI_MTIME_MAX_LOW)))
    2405     return NULL;
     2401     && (ret_val->mtime.high < REGFI_MTIME_MIN_HIGH
     2402         || ret_val->mtime.high > REGFI_MTIME_MAX_HIGH))
     2403  {
     2404    talloc_free(ret_val);
     2405    return NULL;
     2406  }
    24062407
    24072408  ret_val->unknown1 = IVAL(nk_header, 0xC);
  • releases/0.12.0/src/common.c

    r172 r179  
    2929const char* common_special_chars = ",\"\\";
    3030
    31 #define REGLOOKUP_VERSION "0.12.0"
     31#define REGLOOKUP_VERSION "0.12.1-unreleased"
    3232
    3333#define REGLOOKUP_EXIT_OK       0
Note: See TracChangeset for help on using the changeset viewer.