Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/regfi.c
r256 r257 1997 1997 cur_key = regfi_iterator_cur_key(i); 1998 1998 if(cur_key == NULL) 1999 /* XXX: report error */1999 regfi_log_add(REGFI_LOG_ERROR, "Current key invalid in find_subkey."); 2000 2000 return ret_val; 2001 2001 … … 2100 2100 cur_key = regfi_iterator_cur_key(i); 2101 2101 if(cur_key == NULL) 2102 /* XXX: report error */2102 regfi_log_add(REGFI_LOG_ERROR, "Current key invalid in cur_subkey."); 2103 2103 return NULL; 2104 2104 … … 2129 2129 cur_key = regfi_iterator_cur_key(i); 2130 2130 if(cur_key == NULL) 2131 /* XXX: report error */2131 regfi_log_add(REGFI_LOG_ERROR, "Current key invalid in find_value."); 2132 2132 return ret_val; 2133 2133 … … 2161 2161 cur_key = regfi_iterator_cur_key(i); 2162 2162 if(cur_key == NULL) 2163 /* XXX: report error */2163 regfi_log_add(REGFI_LOG_ERROR, "Current key invalid in cur_value."); 2164 2164 return ret_val; 2165 2165 … … 2523 2523 } 2524 2524 2525 /* XXX: check for NULL */2526 2525 tmp_str = talloc_realloc(NULL, tmp_str, uint8_t, tmp_size); 2526 if(tmp_str == NULL) 2527 return false; 2527 2528 data->interpreted.string = tmp_str; 2528 2529 data->interpreted_size = tmp_size; … … 2770 2771 memcpy(ret_val->file_name, file_header+0x30, REGFI_REGF_NAME_SIZE); 2771 2772 2772 /* XXX: Should we add a warning if these uuid parsers fail? Can they? */2773 2773 ret_val->rm_id = winsec_parse_uuid(ret_val, file_header+0x70, 16); 2774 if(ret_val->rm_id == NULL) 2775 regfi_log_add(REGFI_LOG_WARN, "Hive header's rm_id failed to parse."); 2776 2774 2777 ret_val->log_id = winsec_parse_uuid(ret_val, file_header+0x80, 16); 2778 if(ret_val->log_id == NULL) 2779 regfi_log_add(REGFI_LOG_WARN, "Hive header's log_id failed to parse."); 2780 2775 2781 ret_val->flags = IVAL(file_header, 0x90); 2782 2776 2783 ret_val->tm_id = winsec_parse_uuid(ret_val, file_header+0x94, 16); 2784 if(ret_val->tm_id == NULL) 2785 regfi_log_add(REGFI_LOG_WARN, "Hive header's tm_id failed to parse."); 2786 2777 2787 ret_val->guid_signature = IVAL(file_header, 0xa4); 2778 2788 … … 3486 3496 3487 3497 /* XXX: do something with unalloc? */ 3488 3489 3498 max_size = regfi_calc_maxsize(file, offset); 3490 3499 if((max_size < 0) || (num_chunks*sizeof(uint32_t) + 4 > max_size)) -
trunk/lib/winsec.c
r253 r257 62 62 ret_val->control = SVAL(buf, 0x2); 63 63 64 /* XXX: should probably reject any non-self relative */ 64 65 if(!(ret_val->control & WINSEC_DESC_SELF_RELATIVE)) 65 66 fprintf(stderr, "DEBUG: NOT self-relative!\n");
Note: See TracChangeset
for help on using the changeset viewer.