Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/lru_cache.c
r252 r286 61 61 62 62 #if 0 63 static void lru_cache_print(lru_cache* ht) 63 _EXPORT() 64 void lru_cache_print(lru_cache* ht) 64 65 { 65 66 uint32_t i; -
trunk/lib/regfi.c
r274 r286 973 973 ******************************************************************************/ 974 974 REGFI_SK* regfi_parse_sk(REGFI_FILE* file, uint32_t offset, uint32_t max_size, 975 975 bool strict) 976 976 { 977 977 REGFI_SK* ret_val = NULL; … … 1015 1015 { 1016 1016 regfi_log_add(REGFI_LOG_WARN, "Invalid cell size found while" 1017 1017 " parsing SK record at offset 0x%.8X.", offset); 1018 1018 goto fail_locked; 1019 1019 } … … 1063 1063 1064 1064 if(!(ret_val->sec_desc = winsec_parse_desc(ret_val, sec_desc_buf, 1065 1065 ret_val->desc_size))) 1066 1066 { 1067 1067 regfi_log_add(REGFI_LOG_ERROR, "Failed to parse security" 1068 1069 1068 " descriptor while parsing SK record at offset 0x%.8X.", 1069 offset); 1070 1070 goto fail; 1071 1071 } … … 1439 1439 REGFI_SK* ret_val = NULL; 1440 1440 int32_t max_size; 1441 void* failure_ptr = NULL;1441 uint32_t* failure_ptr = NULL; 1442 1442 1443 1443 max_size = regfi_calc_maxsize(file, offset); … … 1447 1447 if(file->sk_cache == NULL) 1448 1448 return regfi_parse_sk(file, offset, max_size, strict); 1449 1450 1449 if(!regfi_lock(file, &file->mem_lock, "regfi_load_sk")) 1451 1450 return NULL; … … 1456 1455 1457 1456 /* Bail out if we have previously cached a parse failure at this offset. */ 1458 if(ret_val == (void*)REGFI_OFFSET_NONE)1457 if(ret_val && *(uint32_t*)ret_val == REGFI_OFFSET_NONE) 1459 1458 { 1460 1459 ret_val = NULL; … … 1471 1470 goto unlock; 1472 1471 1473 * (uint32_t*)failure_ptr = REGFI_OFFSET_NONE;1472 *failure_ptr = REGFI_OFFSET_NONE; 1474 1473 lru_cache_update(file->sk_cache, &offset, 4, failure_ptr); 1475 1474 … … 1477 1476 talloc_unlink(NULL, failure_ptr); 1478 1477 } 1478 else 1479 lru_cache_update(file->sk_cache, &offset, 4, ret_val); 1479 1480 } 1480 1481 else … … 2054 2055 return NULL; 2055 2056 2057 /*lru_cache_print(file->sk_cache);*/ 2056 2058 return regfi_load_sk(file, key->sk_off + REGFI_REGF_SIZE, true); 2057 2059 } -
trunk/lib/winsec.c
r261 r286 413 413 uint32_t i, size = WINSEC_MAX_SUBAUTHS*11 + 24; 414 414 uint32_t left = size; 415 uint8_t comps = sid->num_auths; 416 char* ret_val = malloc(size); 417 415 uint8_t comps; 416 char* ret_val; 417 418 if(sid == NULL) 419 return NULL; 420 comps = sid->num_auths; 421 422 ret_val = malloc(size); 418 423 if(ret_val == NULL) 419 424 return NULL;
Note: See TracChangeset
for help on using the changeset viewer.