Rizin
unix-like reverse engineering framework and cli tools
dmp64.c
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2020 abcSup <zifan.tan@gmail.com>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 #include <rz_types.h>
5 #include <rz_util.h>
6 
7 #include "dmp64.h"
8 #include "../pe/pe_specs.h"
9 
10 static bool rz_bin_dmp64_init_triage(struct rz_bin_dmp64_obj_t *obj) {
11  if (rz_buf_size(obj->b) < sizeof(dmp64_header) + sizeof(dmp64_triage)) {
12  return false;
13  }
15  if (!obj->triage64_header) {
16  return false;
17  }
18  rz_buf_seek(obj->b, sizeof(dmp64_header), SEEK_SET);
46  return true;
47 }
48 
50  int i, j;
52  if (!memcmp(mem_desc, DMP_UNUSED_MAGIC, 4)) {
53  RZ_LOG_ERROR("Invalid PhysicalMemoryDescriptor magic\n");
54  return false;
55  }
56  ut64 num_runs = mem_desc->NumberOfRuns;
57  if (num_runs * sizeof(dmp_p_memory_run) >= rz_offsetof(dmp64_header, ContextRecord)) {
58  RZ_LOG_ERROR("Invalid PhysicalMemoryDescriptor offset\n");
59  return false;
60  }
61  obj->pages = rz_list_newf(free);
62  if (!obj->pages) {
63  return false;
64  }
65  dmp_p_memory_run *runs = calloc(num_runs, sizeof(dmp_p_memory_run));
66  ut64 num_runs_offset = rz_offsetof(dmp64_header, PhysicalMemoryBlockBuffer) + rz_offsetof(dmp64_p_memory_desc, NumberOfRuns);
67  if (rz_buf_read_at(obj->b, num_runs_offset, (ut8 *)runs, num_runs * sizeof(dmp_p_memory_run)) < 0) {
68  RZ_LOG_ERROR("Cannot read memory runs value from dmp64.\n");
69  free(runs);
70  return false;
71  };
72 
73  ut64 num_page = 0;
74  ut64 base = sizeof(dmp64_header);
75  for (i = 0; i < num_runs; i++) {
76  dmp_p_memory_run *run = &(runs[i]);
77  for (j = 0; j < run->PageCount; j++) {
79  if (!page) {
80  free(runs);
81  return false;
82  }
83  page->start = (run->BasePage + j) * DMP_PAGE_SIZE;
84  page->file_offset = base + num_page * DMP_PAGE_SIZE;
85  rz_list_append(obj->pages, page);
86  num_page++;
87  }
88  }
89  if (mem_desc->NumberOfPages != num_page) {
90  RZ_LOG_WARN("The number of pages in the structure does not match with the counted one.\n");
91  }
92 
93  free(runs);
94  return true;
95 }
96 
98  if (!(obj->header = RZ_NEW0(dmp64_header))) {
99  RZ_LOG_ERROR("Cannot allocate dmp64_header.\n");
100  return false;
101  }
102  if (rz_buf_read_at(obj->b, 0, (ut8 *)obj->header, sizeof(dmp64_header)) < 0) {
103  RZ_LOG_ERROR("cannot read dmp64 header\n");
104  return false;
105  }
106  obj->dtb = obj->header->DirectoryTableBase;
107 
108  return true;
109 }
110 
111 static void free_driver(dmp_driver_desc *driver) {
112  free(driver->file);
113  free(driver);
114 }
115 
117  if (!obj->triage64_header) {
118  return false;
119  }
120 
122  if (!obj->drivers) {
123  return false;
124  }
125  ut32 address = obj->triage64_header->DriverListOffset;
126  int i;
127  for (i = 0; i < obj->triage64_header->DriverCount; i++) {
129  if (!driver) {
130  break;
131  }
132  ut32 name_offset = 0;
133  const ut64 kldr_entry_addr = address + rz_offsetof(dmp_driver_entry64, LdrEntry);
134  rz_buf_read_le32_at(obj->b, kldr_entry_addr + rz_offsetof(dmp_kldr_data_table_entry64, SizeOfImage), &driver->size);
135  rz_buf_read_le32_at(obj->b, kldr_entry_addr + rz_offsetof(dmp_kldr_data_table_entry64, TimeDateStamp), &driver->timestamp);
136  rz_buf_read_le64_at(obj->b, kldr_entry_addr + rz_offsetof(dmp_kldr_data_table_entry64, DllBase), &driver->base);
137  rz_buf_read_le32_at(obj->b, address + rz_offsetof(dmp_driver_entry64, DriverNameOffset), &name_offset);
138 
139  dmp_string str = { 0 };
140  rz_buf_seek(obj->b, name_offset, SEEK_SET);
141  rz_buf_read_le32(obj->b, &str.count);
142  if (str.count > 1024) {
143  free(driver);
144  return false;
145  }
146  ut8 *file = calloc(str.count + 1, sizeof(ut16));
147  ut8 *file_utf8 = calloc(str.count + 1, sizeof(ut16));
148  if (!file) {
149  free(driver);
150  free(file);
151  free(file_utf8);
152  return false;
153  }
154  rz_buf_read(obj->b, file, str.count * sizeof(ut16));
155  const size_t size = (str.count + 1) * sizeof(ut16);
156  rz_str_utf16_to_utf8(file_utf8, size, file, size, true);
157  driver->file = (char *)file_utf8;
158  free(file);
159  rz_list_push(obj->drivers, driver);
160  address += sizeof(dmp_driver_entry64);
161  }
162  return true;
163 }
164 
166  if (!obj->triage64_header) {
167  return false;
168  }
169 
170  obj->datablocks = rz_list_newf(free);
171  if (!obj->datablocks) {
172  return false;
173  }
174 
176 
177  ut32 i;
178  for (i = 0; i < obj->triage64_header->DataBlocksCount; i++) {
180  if (!db) {
181  break;
182  }
183  rz_buf_read_le64(obj->b, &db->virtualAddress);
184  rz_buf_read_le32(obj->b, &db->offset);
185  rz_buf_read_le32(obj->b, &db->size);
186  rz_list_push(obj->datablocks, db);
187  }
188 
191  if (!db) {
192  return true;
193  }
197  rz_list_push(obj->datablocks, db);
198  }
199 
200  return true;
201 }
202 
204  if (!obj->bmp_header) {
205  return false;
206  }
207  obj->pages = rz_list_newf(free);
208  if (!obj->pages) {
209  return false;
210  }
211  ut64 paddr_base = obj->bmp_header->FirstPage;
212  ut64 num_pages = obj->bmp_header->Pages;
213  RzBitmap *bitmap = rz_bitmap_new(num_pages);
214  rz_bitmap_set_bytes(bitmap, obj->bitmap, num_pages / 8);
215 
216  ut64 num_bitset = 0;
217  ut64 i;
218  bool create_new_page = true;
219  dmp_page_desc *page;
220  for (i = 0; i < num_pages; i++) {
221  if (!rz_bitmap_test(bitmap, i)) {
222  create_new_page = true;
223  continue;
224  }
225  if (!create_new_page) {
226  page->size += DMP_PAGE_SIZE;
227  num_bitset++;
228  continue;
229  }
230  page = RZ_NEW0(dmp_page_desc);
231  if (!page) {
232  rz_bitmap_free(bitmap);
233  return false;
234  }
235  if (UT64_MUL_OVFCHK(i, DMP_PAGE_SIZE)) {
236  free(page);
237  break;
238  }
239  page->start = i * DMP_PAGE_SIZE;
240  page->file_offset = paddr_base + num_bitset * DMP_PAGE_SIZE;
241  page->size = DMP_PAGE_SIZE;
242  rz_list_append(obj->pages, page);
243  num_bitset++;
244  create_new_page = false;
245  }
246  if (obj->bmp_header->TotalPresentPages != num_bitset) {
247  RZ_LOG_ERROR("The total present pages number in the header does not match with the counted one.\n");
248  rz_bitmap_free(bitmap);
249  return false;
250  }
251 
252  rz_bitmap_free(bitmap);
253  return true;
254 }
255 
257  if (!(obj->bmp_header = RZ_NEW0(dmp_bmp_header))) {
258  RZ_LOG_ERROR("Cannot allocate dmp_bmp_header.\n");
259  return false;
260  }
261  if (rz_buf_read_at(obj->b, sizeof(dmp64_header), (ut8 *)obj->bmp_header, rz_offsetof(dmp_bmp_header, Bitmap)) < 0) {
262  RZ_LOG_ERROR("Cannot read bmp_header\n");
263  return false;
264  }
265  if (memcmp(obj->bmp_header, DMP_BMP_MAGIC, 8) &&
266  memcmp(obj->bmp_header, DMP_BMP_FULL_MAGIC, 8)) {
267  RZ_LOG_ERROR("Invalid Bitmap Magic\n");
268  return false;
269  }
270  ut64 bitmapsize = obj->bmp_header->Pages / 8;
271  obj->bitmap = calloc(1, bitmapsize);
272  if (rz_buf_read_at(obj->b, sizeof(dmp64_header) + rz_offsetof(dmp_bmp_header, Bitmap), obj->bitmap, bitmapsize) < 0) {
273  RZ_LOG_ERROR("Cannot read bitmap\n");
274  return false;
275  }
276 
277  return true;
278 }
279 
280 static int rz_bin_dmp64_init(struct rz_bin_dmp64_obj_t *obj) {
281  if (!rz_bin_dmp64_init_header(obj)) {
282  RZ_LOG_ERROR("Invalid Kernel Dump x64 Format\n");
283  return false;
284  }
285  switch (obj->header->DumpType) {
286  case DMP_DUMPTYPE_TRIAGE:
287  if (!rz_bin_dmp64_init_triage(obj) ||
290  return false;
291  }
292  break;
295  if (!rz_bin_dmp64_init_bmp_header(obj) ||
297  return false;
298  }
299  break;
300  case DMP_DUMPTYPE_FULL:
301  if (!rz_bin_dmp64_init_memory_runs(obj)) {
302  return false;
303  }
304  break;
305  default:
306  break;
307  }
308 
309  return true;
310 }
311 
313  if (!obj) {
314  return;
315  }
316 
317  rz_buf_free(obj->b);
318  obj->b = NULL;
319  free(obj->header);
320  free(obj->bmp_header);
321  free(obj->triage64_header);
322  free(obj->runs);
323  free(obj->bitmap);
324  rz_list_free(obj->pages);
325  free(obj);
326 }
327 
329  struct rz_bin_dmp64_obj_t *obj = RZ_NEW0(struct rz_bin_dmp64_obj_t);
330  if (!obj) {
331  return NULL;
332  }
333  obj->kv = sdb_new0();
334  obj->size = (ut32)rz_buf_size(buf);
335  obj->b = rz_buf_ref(buf);
336 
337  if (!rz_bin_dmp64_init(obj)) {
338  rz_bin_dmp64_free(obj);
339  return NULL;
340  }
341 
342  return obj;
343 }
344 
345 const char *rz_bin_dmp64_bugcheckcode_as_str(ut32 BugCheckCode) {
346 #define CASE(code) \
347  case code: return #code;
348  switch (BugCheckCode) {
714  case 0:
715  return "Not a crash";
716  default:
717  return "Unknown";
718  }
719  return NULL;
720 }
lzma_index ** i
Definition: index.h:629
#define NULL
Definition: cris-opc.c:27
uint16_t ut16
uint32_t ut32
static int rz_bin_dmp64_init_header(struct rz_bin_dmp64_obj_t *obj)
Definition: dmp64.c:97
struct rz_bin_dmp64_obj_t * rz_bin_dmp64_new_buf(RzBuffer *buf)
Definition: dmp64.c:328
static bool rz_bin_dmp64_init_triage_datablocks(struct rz_bin_dmp64_obj_t *obj)
Definition: dmp64.c:165
static int rz_bin_dmp64_init(struct rz_bin_dmp64_obj_t *obj)
Definition: dmp64.c:280
static int rz_bin_dmp64_init_memory_runs(struct rz_bin_dmp64_obj_t *obj)
Definition: dmp64.c:49
static int rz_bin_dmp64_init_bmp_header(struct rz_bin_dmp64_obj_t *obj)
Definition: dmp64.c:256
static bool rz_bin_dmp64_init_triage_drivers(struct rz_bin_dmp64_obj_t *obj)
Definition: dmp64.c:116
static int rz_bin_dmp64_init_bmp_pages(struct rz_bin_dmp64_obj_t *obj)
Definition: dmp64.c:203
const char * rz_bin_dmp64_bugcheckcode_as_str(ut32 BugCheckCode)
Definition: dmp64.c:345
void rz_bin_dmp64_free(struct rz_bin_dmp64_obj_t *obj)
Definition: dmp64.c:312
#define CASE(code)
static bool rz_bin_dmp64_init_triage(struct rz_bin_dmp64_obj_t *obj)
Definition: dmp64.c:10
static void free_driver(dmp_driver_desc *driver)
Definition: dmp64.c:111
#define INSTRUCTION_BUS_ERROR
Definition: dmp_specs.h:344
#define PAGE_FAULT_IN_FREED_SPECIAL_POOL
Definition: dmp_specs.h:474
#define BAD_EXHANDLE
Definition: dmp_specs.h:451
#define INVALID_PROCESS_ATTACH_ATTEMPT
Definition: dmp_specs.h:302
#define PNP_DETECTED_FATAL_ERROR
Definition: dmp_specs.h:472
#define CID_HANDLE_CREATION
Definition: dmp_specs.h:319
#define INVALID_FLOATING_POINT_STATE
Definition: dmp_specs.h:499
#define CORRUPT_ACCESS_TOKEN
Definition: dmp_specs.h:337
#define PFN_REFERENCE_COUNT
Definition: dmp_specs.h:325
#define OS_DATA_TAMPERING
Definition: dmp_specs.h:596
#define DRIVER_POWER_STATE_FAILURE
Definition: dmp_specs.h:444
#define INVALID_KERNEL_STACK_ADDRESS
Definition: dmp_specs.h:637
#define DRIVER_RETURNED_HOLDING_CANCEL_LOCK
Definition: dmp_specs.h:545
#define KERNEL_MODE_EXCEPTION_NOT_HANDLED_M
Definition: dmp_specs.h:656
#define NO_SUCH_PARTITION
Definition: dmp_specs.h:364
#define PASSIVE_INTERRUPT_ERROR
Definition: dmp_specs.h:576
#define FAULTY_HARDWARE_CORRUPTED_PAGE
Definition: dmp_specs.h:560
#define WORKER_THREAD_TEST_CONDITION
Definition: dmp_specs.h:604
#define SET_ENV_VAR_FAILED
Definition: dmp_specs.h:388
#define VIDEO_SCHEDULER_INTERNAL_ERROR
Definition: dmp_specs.h:543
#define CDFS_FILE_SYSTEM
Definition: dmp_specs.h:335
#define DRIVER_LEFT_LOCKED_PAGES_IN_PROCESS
Definition: dmp_specs.h:473
#define END_OF_NT_EVALUATION_PERIOD
Definition: dmp_specs.h:438
#define REGISTRY_ERROR
Definition: dmp_specs.h:378
#define CID_HANDLE_DELETION
Definition: dmp_specs.h:320
#define LOCKED_PAGES_TRACKER_CORRUPTION
Definition: dmp_specs.h:487
#define INVALID_AFFINITY_SET
Definition: dmp_specs.h:300
#define SYSTEM_THREAD_EXCEPTION_NOT_HANDLED
Definition: dmp_specs.h:423
#define PINBALL_FILE_SYSTEM
Definition: dmp_specs.h:386
#define SECURITY1_INITIALIZATION_FAILED
Definition: dmp_specs.h:396
#define UDFS_FILE_SYSTEM
Definition: dmp_specs.h:441
#define STATUS_IMAGE_CHECKSUM_MISMATCH
Definition: dmp_specs.h:661
#define PROCESS_HAS_LOCKED_PAGES
Definition: dmp_specs.h:415
#define NMI_HARDWARE_FAILURE
Definition: dmp_specs.h:425
#define WORKER_THREAD_RETURNED_AT_BAD_IRQL
Definition: dmp_specs.h:494
#define INVALID_SILO_DETACH
Definition: dmp_specs.h:635
#define SHARED_RESOURCE_CONV_ERROR
Definition: dmp_specs.h:328
#define INVALID_DATA_ACCESS_TRAP
Definition: dmp_specs.h:301
#define HYPERVISOR_ERROR
Definition: dmp_specs.h:653
#define UNEXPECTED_KERNEL_MODE_TRAP
Definition: dmp_specs.h:424
#define DMP_DUMPTYPE_BITMAPFULL
Definition: dmp_specs.h:21
#define IO1_INITIALIZATION_FAILED
Definition: dmp_specs.h:402
#define INSUFFICIENT_SYSTEM_MAP_REGS
Definition: dmp_specs.h:366
#define PDC_WATCHDOG_TIMEOUT
Definition: dmp_specs.h:590
#define REFERENCE_BY_POINTER
Definition: dmp_specs.h:321
#define PROCESSOR_DRIVER_INTERNAL
Definition: dmp_specs.h:580
#define PAGE_FAULT_BEYOND_END_OF_ALLOCATION
Definition: dmp_specs.h:475
#define EMPTY_THREAD_REAPER_LIST
Definition: dmp_specs.h:316
#define NDIS_INTERNAL_ERROR
Definition: dmp_specs.h:376
#define SYSTEM_LICENSE_VIOLATION
Definition: dmp_specs.h:440
#define TTM_FATAL_ERROR
Definition: dmp_specs.h:627
#define PFN_LIST_CORRUPT
Definition: dmp_specs.h:375
#define MEMORY1_INITIALIZATION_FAILED
Definition: dmp_specs.h:398
#define DATA_BUS_ERROR
Definition: dmp_specs.h:343
#define INVALID_WORK_QUEUE_ITEM
Definition: dmp_specs.h:436
#define DMP_DUMPTYPE_BITMAPKERNEL
Definition: dmp_specs.h:22
#define SDBUS_INTERNAL_ERROR
Definition: dmp_specs.h:600
#define IMPERSONATING_WORKER_THREAD
Definition: dmp_specs.h:492
#define INVALID_SOFTWARE_INTERRUPT
Definition: dmp_specs.h:304
#define REFS_FILE_SYSTEM
Definition: dmp_specs.h:584
#define LPC_INITIALIZATION_FAILED
Definition: dmp_specs.h:403
#define THREAD_TERMINATE_HELD_MUTEX
Definition: dmp_specs.h:658
#define INVALID_REGION_OR_SEGMENT
Definition: dmp_specs.h:439
#define WIN32K_HANDLE_MANAGER
Definition: dmp_specs.h:572
#define NETIO_INVALID_POOL_CALLER
Definition: dmp_specs.h:555
#define TRAP_CAUSE_UNKNOWN
Definition: dmp_specs.h:315
#define TARGET_MDL_TOO_SMALL
Definition: dmp_specs.h:361
#define WORKER_THREAD_RETURNED_WHILE_ATTACHED_TO_SILO
Definition: dmp_specs.h:626
#define DRIVER_CORRUPTED_MMPOOL
Definition: dmp_specs.h:478
#define HYPERGUARD_VIOLATION
Definition: dmp_specs.h:618
#define KERNEL_MODE_HEAP_CORRUPTION
Definition: dmp_specs.h:575
#define UNSUPPORTED_PROCESSOR
Definition: dmp_specs.h:390
#define DRIVER_UNLOADED_WITHOUT_CANCELLING_PENDING_OPERATIONS
Definition: dmp_specs.h:476
#define NO_BOOT_DEVICE
Definition: dmp_specs.h:380
#define VOLSNAP_OVERLAPPED_TABLE_ACCESS
Definition: dmp_specs.h:562
#define UNSUPPORTED_INSTRUCTION_MODE
Definition: dmp_specs.h:592
#define INVALID_PUSH_LOCK_FLAGS
Definition: dmp_specs.h:593
#define DMP_DUMPTYPE_TRIAGE
Definition: dmp_specs.h:20
#define RESOURCE_NOT_OWNED
Definition: dmp_specs.h:496
#define BAD_POOL_CALLER
Definition: dmp_specs.h:465
#define DRIVER_PAGE_FAULT_IN_FREED_SPECIAL_POOL
Definition: dmp_specs.h:483
#define RECURSIVE_NMI
Definition: dmp_specs.h:536
#define VIDEO_TDR_TIMEOUT_DETECTED
Definition: dmp_specs.h:542
#define BC_BTHMINI_VERIFIER_FAULT
Definition: dmp_specs.h:652
#define ELAM_DRIVER_DETECTED_FATAL_ERROR
Definition: dmp_specs.h:612
#define CANNOT_WRITE_CONFIGURATION
Definition: dmp_specs.h:414
#define PROFILER_CONFIGURATION_ILLEGAL
Definition: dmp_specs.h:613
#define THREAD_STUCK_IN_DEVICE_DRIVER_M
Definition: dmp_specs.h:657
#define FILE_SYSTEM
Definition: dmp_specs.h:331
#define PAGE_NOT_ZERO
Definition: dmp_specs.h:556
#define KERNEL_THREAD_PRIORITY_FLOOR_VIOLATION
Definition: dmp_specs.h:597
#define SCSI_VERIFIER_DETECTED_VIOLATION
Definition: dmp_specs.h:508
#define ERESOURCE_INVALID_RELEASE
Definition: dmp_specs.h:607
#define KERNEL_SECURITY_CHECK_FAILURE
Definition: dmp_specs.h:574
#define SECURE_KERNEL_ERROR
Definition: dmp_specs.h:617
#define UCMUCSI_FAILURE
Definition: dmp_specs.h:645
#define INVALID_DRIVER_HANDLE
Definition: dmp_specs.h:549
#define CACHE_MANAGER
Definition: dmp_specs.h:349
#define SERIAL_DRIVER_INTERNAL
Definition: dmp_specs.h:353
#define SET_OF_INVALID_CONTEXT
Definition: dmp_specs.h:345
#define WORKER_THREAD_RETURNED_WITH_BAD_PAGING_IO_PRIORITY
Definition: dmp_specs.h:558
#define HTTP_DRIVER_CORRUPTED
Definition: dmp_specs.h:517
#define SPIN_LOCK_ALREADY_OWNED
Definition: dmp_specs.h:312
#define PROCESS_INITIALIZATION_FAILED
Definition: dmp_specs.h:393
#define MANUALLY_INITIATED_POWER_BUTTON_HOLD
Definition: dmp_specs.h:633
#define BC_BLUETOOTH_VERIFIER_FAULT
Definition: dmp_specs.h:651
#define INVALID_CALLBACK_STACK_ADDRESS
Definition: dmp_specs.h:636
#define INVALID_SLOT_ALLOCATOR_FLAGS
Definition: dmp_specs.h:606
#define MUST_SUCCEED_POOL_EMPTY
Definition: dmp_specs.h:362
#define IRQL_UNEXPECTED_VALUE
Definition: dmp_specs.h:470
#define DRIVER_CORRUPTED_EXPOOL
Definition: dmp_specs.h:467
#define SYSTEM_SERVICE_EXCEPTION
Definition: dmp_specs.h:356
#define SESSION1_INITIALIZATION_FAILED
Definition: dmp_specs.h:406
#define CLUSTER_CSV_CLUSSVC_DISCONNECT_WATCHDOG
Definition: dmp_specs.h:609
#define WORKER_INVALID
Definition: dmp_specs.h:497
#define TOO_MANY_RECURSIVE_FAULTS
Definition: dmp_specs.h:548
#define BGI_DETECTED_VIOLATION
Definition: dmp_specs.h:454
#define WIN32K_ATOMIC_CHECK_FAILURE
Definition: dmp_specs.h:602
#define MULTIPLE_IRP_COMPLETE_REQUESTS
Definition: dmp_specs.h:365
#define NO_MORE_IRP_STACK_LOCATIONS
Definition: dmp_specs.h:350
#define SCSI_DISK_DRIVER_INTERNAL
Definition: dmp_specs.h:342
#define SECURITY_SYSTEM
Definition: dmp_specs.h:338
#define KERNEL_LOCK_ENTRY_LEAKED_ON_THREAD_TERMINATION
Definition: dmp_specs.h:594
#define NMR_INVALID_STATE
Definition: dmp_specs.h:554
#define IRQL_NOT_DISPATCH_LEVEL
Definition: dmp_specs.h:305
#define THIRD_PARTY_FILE_SYSTEM_FAILURE
Definition: dmp_specs.h:529
#define DPC_WATCHDOG_VIOLATION
Definition: dmp_specs.h:568
#define PP1_INITIALIZATION_FAILED
Definition: dmp_specs.h:432
#define REGISTRY_FILTER_DRIVER_EXCEPTION
Definition: dmp_specs.h:570
#define INTERNAL_POWER_ERROR
Definition: dmp_specs.h:445
#define HAL_BLOCKED_PROCESSOR_INTERNAL_ERROR
Definition: dmp_specs.h:647
#define STORAGE_DEVICE_ABNORMALITY_DETECTED
Definition: dmp_specs.h:579
#define SOC_SUBSYSTEM_FAILURE
Definition: dmp_specs.h:586
#define EXCEPTION_SCOPE_INVALID
Definition: dmp_specs.h:588
#define CNSS_FILE_SYSTEM_FILTER
Definition: dmp_specs.h:449
#define DYNAMIC_ADD_PROCESSOR_MISMATCH
Definition: dmp_specs.h:565
#define MAILSLOT_FILE_SYSTEM
Definition: dmp_specs.h:379
#define MEMORY_MANAGEMENT
Definition: dmp_specs.h:323
#define WINLOGON_FATAL_ERROR
Definition: dmp_specs.h:660
#define HARDWARE_INTERRUPT_STORM
Definition: dmp_specs.h:509
#define MEMORY_IMAGE_CORRUPT
Definition: dmp_specs.h:447
#define DRIVER_PNP_WATCHDOG
Definition: dmp_specs.h:642
#define AGP_INTERNAL
Definition: dmp_specs.h:540
#define MUTEX_LEVEL_NUMBER_VIOLATION
Definition: dmp_specs.h:310
#define MUTEX_ALREADY_OWNED
Definition: dmp_specs.h:463
#define VIDEO_SHADOW_DRIVER_FATAL_ERROR
Definition: dmp_specs.h:539
#define DRIVER_INVALID_STACK_ACCESS
Definition: dmp_specs.h:490
#define NO_SPIN_LOCK_AVAILABLE
Definition: dmp_specs.h:326
#define ACPI_BIOS_ERROR
Definition: dmp_specs.h:450
#define CLOCK_WATCHDOG_TIMEOUT
Definition: dmp_specs.h:523
#define MBR_CHECKSUM_MISMATCH
Definition: dmp_specs.h:429
#define ACTIVE_EX_WORKER_THREAD_TERMINATION
Definition: dmp_specs.h:501
#define BAD_SYSTEM_CONFIG_INFO
Definition: dmp_specs.h:413
#define LOADER_BLOCK_MISMATCH
Definition: dmp_specs.h:522
#define DRIVER_USED_EXCESSIVE_PTES
Definition: dmp_specs.h:486
#define VIDEO_DRIVER_INIT_FAILURE
Definition: dmp_specs.h:455
#define BUGCODE_NDIS_DRIVER
Definition: dmp_specs.h:421
#define BAD_OBJECT_HEADER
Definition: dmp_specs.h:616
#define KERNEL_STACK_LOCKED_AT_EXIT
Definition: dmp_specs.h:435
#define BOUND_IMAGE_UNSUPPORTED
Definition: dmp_specs.h:437
#define SESSION4_INITIALIZATION_FAILED
Definition: dmp_specs.h:409
#define REF_UNKNOWN_LOGON_SESSION
Definition: dmp_specs.h:368
#define ABNORMAL_RESET_DETECTED
Definition: dmp_specs.h:583
#define PAGE_FAULT_IN_NONPAGED_AREA
Definition: dmp_specs.h:377
#define DATA_COHERENCY_EXCEPTION
Definition: dmp_specs.h:382
#define CACHE_INITIALIZATION_FAILED
Definition: dmp_specs.h:399
#define DRIVER_CAUGHT_MODIFYING_FREED_POOL
Definition: dmp_specs.h:468
#define MACHINE_CHECK_EXCEPTION
Definition: dmp_specs.h:442
#define INVALID_HIBERNATED_STATE
Definition: dmp_specs.h:461
#define SESSION3_INITIALIZATION_FAILED
Definition: dmp_specs.h:408
#define FATAL_UNHANDLED_HARD_ERROR
Definition: dmp_specs.h:373
#define MICROCODE_REVISION_MISMATCH
Definition: dmp_specs.h:614
#define FLOPPY_INTERNAL_ERROR
Definition: dmp_specs.h:352
#define INTERRUPT_EXCEPTION_NOT_HANDLED
Definition: dmp_specs.h:358
#define ACPI_BIOS_FATAL_ERROR
Definition: dmp_specs.h:493
#define DRIVER_VERIFIER_DMA_VIOLATION
Definition: dmp_specs.h:498
#define MANUALLY_INITIATED_CRASH
Definition: dmp_specs.h:495
#define ILLEGAL_IOMMU_PAGE_FAULT
Definition: dmp_specs.h:598
#define KERNEL_AUTO_BOOST_INVALID_LOCK_RELEASE
Definition: dmp_specs.h:603
#define QUOTA_UNDERFLOW
Definition: dmp_specs.h:330
#define NO_USER_MODE_CONTEXT
Definition: dmp_specs.h:311
#define INVALID_MDL_RANGE
Definition: dmp_specs.h:563
#define DFS_FILE_SYSTEM
Definition: dmp_specs.h:427
#define CONFIG_LIST_FAILED
Definition: dmp_specs.h:412
#define AGP_GART_CORRUPTION
Definition: dmp_specs.h:527
#define SECURE_FAULT_UNHANDLED
Definition: dmp_specs.h:619
#define INTERRUPT_UNWIND_ATTEMPTED
Definition: dmp_specs.h:357
#define SECURITY_INITIALIZATION_FAILED
Definition: dmp_specs.h:392
#define VHD_BOOT_INITIALIZATION_FAILED
Definition: dmp_specs.h:564
#define CHIPSET_DETECTED_ERROR
Definition: dmp_specs.h:457
#define DRIVER_VIOLATION
Definition: dmp_specs.h:551
#define FLTMGR_FILE_SYSTEM
Definition: dmp_specs.h:512
#define RESOURCE_MANAGER_EXCEPTION_NOT_HANDLED
Definition: dmp_specs.h:535
#define MULTIPROCESSOR_CONFIGURATION_NOT_SUPPORTED
Definition: dmp_specs.h:359
#define PF_DETECTED_CORRUPTION
Definition: dmp_specs.h:621
#define BAD_POOL_HEADER
Definition: dmp_specs.h:322
#define AGP_ILLEGALLY_REPROGRAMMED
Definition: dmp_specs.h:528
#define KERNEL_WMI_INTERNAL
Definition: dmp_specs.h:585
#define SPECIAL_POOL_DETECTED_MEMORY_CORRUPTION
Definition: dmp_specs.h:464
#define AGP_INVALID_ACCESS
Definition: dmp_specs.h:526
#define MSRPC_STATE_VIOLATION
Definition: dmp_specs.h:537
#define SOC_CRITICAL_DEVICE_REMOVED
Definition: dmp_specs.h:589
#define ATTEMPTED_WRITE_TO_CM_PROTECTED_STORAGE
Definition: dmp_specs.h:546
#define DRIVER_IRQL_NOT_LESS_OR_EQUAL
Definition: dmp_specs.h:479
#define RESOURCE_OWNER_POINTER_INVALID
Definition: dmp_specs.h:567
#define NPFS_FILE_SYSTEM
Definition: dmp_specs.h:334
#define EFS_FATAL_ERROR
Definition: dmp_specs.h:644
#define SETUP_FAILURE
Definition: dmp_specs.h:428
#define HARDWARE_WATCHDOG_TIMEOUT
Definition: dmp_specs.h:638
#define DIRTY_MAPPED_PAGES_CONGESTION
Definition: dmp_specs.h:503
#define PAGE_FAULT_WITH_INTERRUPTS_OFF
Definition: dmp_specs.h:370
#define CRITICAL_INITIALIZATION_FAILURE
Definition: dmp_specs.h:578
#define STORAGE_MINIPORT_ERROR
Definition: dmp_specs.h:507
#define MAXIMUM_WAIT_OBJECTS_EXCEEDED
Definition: dmp_specs.h:309
#define NTFS_FILE_SYSTEM
Definition: dmp_specs.h:333
#define WORKER_THREAD_RETURNED_WITH_NON_DEFAULT_WORKLOAD_CLASS
Definition: dmp_specs.h:643
#define SPIN_LOCK_INIT_FAILURE
Definition: dmp_specs.h:426
#define SYSTEM_PTE_MISUSE
Definition: dmp_specs.h:488
#define DISORDERLY_SHUTDOWN
Definition: dmp_specs.h:510
#define POOL_CORRUPTION_IN_FILE_AREA
Definition: dmp_specs.h:491
#define DEVICE_REFERENCE_COUNT_NOT_ZERO
Definition: dmp_specs.h:351
#define SESSION_HAS_VALID_VIEWS_ON_EXIT
Definition: dmp_specs.h:458
#define PROCESS1_INITIALIZATION_FAILED
Definition: dmp_specs.h:404
#define KERNEL_DATA_INPAGE_ERROR
Definition: dmp_specs.h:419
#define PP0_INITIALIZATION_FAILED
Definition: dmp_specs.h:431
#define WDF_VIOLATION
Definition: dmp_specs.h:533
#define COREMSGCALL_INTERNAL_ERROR
Definition: dmp_specs.h:610
#define LM_SERVER_INTERNAL_ERROR
Definition: dmp_specs.h:381
#define OBJECT_INITIALIZATION_FAILED
Definition: dmp_specs.h:391
#define STATUS_CANNOT_LOAD_REGISTRY_FILE
Definition: dmp_specs.h:659
#define CRITICAL_SERVICE_FAILED
Definition: dmp_specs.h:387
#define WORKER_THREAD_RETURNED_WITH_SYSTEM_PAGE_PRIORITY_ACTIVE
Definition: dmp_specs.h:601
#define NO_MORE_SYSTEM_PTES
Definition: dmp_specs.h:360
#define SYMBOLIC_INITIALIZATION_FAILED
Definition: dmp_specs.h:397
#define DMP_BMP_MAGIC
Definition: dmp_specs.h:12
#define FATAL_ABNORMAL_RESET_ERROR
Definition: dmp_specs.h:587
#define HAL_IOMMU_INTERNAL_ERROR
Definition: dmp_specs.h:646
#define DRIVER_PAGE_FAULT_BEYOND_END_OF_ALLOCATION
Definition: dmp_specs.h:484
#define UNEXPECTED_KERNEL_MODE_TRAP_M
Definition: dmp_specs.h:655
#define DMP_DUMPTYPE_FULL
Definition: dmp_specs.h:17
#define CRITICAL_PROCESS_DIED
Definition: dmp_specs.h:506
#define DMA_COMMON_BUFFER_VECTOR_ERROR
Definition: dmp_specs.h:649
#define NO_EXCEPTION_HANDLING_SUPPORT
Definition: dmp_specs.h:308
#define HAL_ILLEGAL_IOMMU_PAGE_FAULT
Definition: dmp_specs.h:599
#define KERNEL_STORAGE_SLOT_IN_USE
Definition: dmp_specs.h:625
#define LAST_CHANCE_CALLED_FROM_KMODE
Definition: dmp_specs.h:318
#define KMODE_EXCEPTION_NOT_HANDLED
Definition: dmp_specs.h:327
#define ATDISK_DRIVER_INTERNAL
Definition: dmp_specs.h:363
#define RAMDISK_BOOT_INITIALIZATION_FAILED
Definition: dmp_specs.h:515
#define DRIVER_VERIFIER_IOMANAGER_VIOLATION
Definition: dmp_specs.h:471
#define MUI_NO_VALID_SYSTEM_LANGUAGE
Definition: dmp_specs.h:559
#define RESERVE_QUEUE_OVERFLOW
Definition: dmp_specs.h:521
#define SECURE_BOOT_VIOLATION
Definition: dmp_specs.h:582
#define PHASE0_INITIALIZATION_FAILED
Definition: dmp_specs.h:346
#define HAL1_INITIALIZATION_FAILED
Definition: dmp_specs.h:394
#define TTM_WATCHDOG_TIMEOUT
Definition: dmp_specs.h:629
#define LOADER_ROLLBACK_DETECTED
Definition: dmp_specs.h:623
#define WIN32K_CALLOUT_WATCHDOG_BUGCHECK
Definition: dmp_specs.h:630
#define ACPI_DRIVER_INTERNAL
Definition: dmp_specs.h:448
#define COREMSG_INTERNAL_ERROR
Definition: dmp_specs.h:611
#define WHEA_INTERNAL_ERROR
Definition: dmp_specs.h:552
#define CONFIG_INITIALIZATION_FAILED
Definition: dmp_specs.h:400
#define WFP_INVALID_OPERATION
Definition: dmp_specs.h:641
#define UP_DRIVER_ON_MP_SYSTEM
Definition: dmp_specs.h:433
#define SESSION5_INITIALIZATION_FAILED
Definition: dmp_specs.h:410
#define VIDEO_DXGKRNL_FATAL_ERROR
Definition: dmp_specs.h:538
#define DPC_WATCHDOG_TIMEOUT
Definition: dmp_specs.h:524
#define BITLOCKER_FATAL_ERROR
Definition: dmp_specs.h:550
#define GPIO_CONTROLLER_DRIVER_ERROR
Definition: dmp_specs.h:573
#define INCONSISTENT_IRP
Definition: dmp_specs.h:339
#define EXFAT_FILE_SYSTEM
Definition: dmp_specs.h:561
#define MANUALLY_INITIATED_CRASH1
Definition: dmp_specs.h:662
#define THREAD_STUCK_IN_DEVICE_DRIVER
Definition: dmp_specs.h:502
#define UNEXPECTED_STORE_EXCEPTION
Definition: dmp_specs.h:595
#define ATTEMPTED_WRITE_TO_READONLY_MEMORY
Definition: dmp_specs.h:462
#define CPI_FIRMWARE_WATCHDOG_TIMEOUT
Definition: dmp_specs.h:639
#define APP_TAGGING_INITIALIZATION_FAILED
Definition: dmp_specs.h:531
#define CREATE_DELETE_LOCK_NOT_LOCKED
Definition: dmp_specs.h:317
#define MUP_FILE_SYSTEM
Definition: dmp_specs.h:525
#define SYSTEM_EXIT_OWNED_MUTEX
Definition: dmp_specs.h:354
#define FAST_ERESOURCE_PRECONDITION_VIOLATION
Definition: dmp_specs.h:631
#define PFN_SHARE_COUNT
Definition: dmp_specs.h:324
#define INACCESSIBLE_BOOT_DEVICE
Definition: dmp_specs.h:420
#define DEVICE_QUEUE_NOT_BUSY
Definition: dmp_specs.h:299
#define STREAMS_INTERNAL_ERROR
Definition: dmp_specs.h:372
#define DRIVER_OVERRAN_STACK_BUFFER
Definition: dmp_specs.h:514
#define EM_INITIALIZATION_FAILURE
Definition: dmp_specs.h:544
#define UNMOUNTABLE_BOOT_VOLUME
Definition: dmp_specs.h:505
#define VHD_BOOT_HOST_VOLUME_NOT_ENOUGH_SPACE
Definition: dmp_specs.h:571
#define FILE_INITIALIZATION_FAILED
Definition: dmp_specs.h:401
#define WIN32K_SECURITY_FAILURE
Definition: dmp_specs.h:624
#define ASSIGN_DRIVE_LETTERS_FAILED
Definition: dmp_specs.h:411
#define KERNEL_PARTITION_REFERENCE_VIOLATION
Definition: dmp_specs.h:620
#define DRIVER_PORTION_MUST_BE_NONPAGED
Definition: dmp_specs.h:481
#define INSTALL_MORE_MEMORY
Definition: dmp_specs.h:422
#define SESSION2_INITIALIZATION_FAILED
Definition: dmp_specs.h:407
#define PHASE1_INITIALIZATION_FAILED
Definition: dmp_specs.h:347
#define WIN32K_POWER_WATCHDOG_TIMEOUT
Definition: dmp_specs.h:628
#define DMP_UNUSED_MAGIC
Definition: dmp_specs.h:14
#define DRIVE_EXTENDER
Definition: dmp_specs.h:569
#define VIDEO_TDR_FAILURE
Definition: dmp_specs.h:541
#define KERNEL_AUTO_BOOST_LOCK_ACQUISITION_WITH_RAISED_IRQL
Definition: dmp_specs.h:622
#define KERNEL_STACK_INPAGE_ERROR
Definition: dmp_specs.h:416
#define NETWORK_BOOT_INITIALIZATION_FAILED
Definition: dmp_specs.h:459
#define ATTEMPTED_EXECUTE_OF_NOEXECUTE_MEMORY
Definition: dmp_specs.h:518
#define HAL_INITIALIZATION_FAILED
Definition: dmp_specs.h:389
#define VIDEO_MEMORY_MANAGEMENT_INTERNAL
Definition: dmp_specs.h:534
#define SPIN_LOCK_NOT_OWNED
Definition: dmp_specs.h:313
#define TIMER_OR_DPC_INVALID
Definition: dmp_specs.h:469
#define STORE_DATA_STRUCTURE_CORRUPTION
Definition: dmp_specs.h:632
#define IRQL_GT_ZERO_AT_SYSTEM_SERVICE
Definition: dmp_specs.h:371
#define REFMON_INITIALIZATION_FAILED
Definition: dmp_specs.h:405
#define RDR_FILE_SYSTEM
Definition: dmp_specs.h:336
#define INVALID_PROCESS_DETACH_ATTEMPT
Definition: dmp_specs.h:303
#define INSTRUCTION_COHERENCY_EXCEPTION
Definition: dmp_specs.h:383
#define VIDEO_DWMINIT_TIMEOUT_FALLBACK_BDD
Definition: dmp_specs.h:615
#define UNEXPECTED_INITIALIZATION_CALL
Definition: dmp_specs.h:348
#define INVALID_EXTENDED_PROCESSOR_STATE
Definition: dmp_specs.h:566
#define WORKER_THREAD_RETURNED_WITH_BAD_IO_PRIORITY
Definition: dmp_specs.h:557
#define IRQL_NOT_LESS_OR_EQUAL
Definition: dmp_specs.h:307
#define INVALID_CANCEL_OF_FILE_OPEN
Definition: dmp_specs.h:500
#define APC_INDEX_MISMATCH
Definition: dmp_specs.h:298
#define HAL_MEMORY_ALLOCATION
Definition: dmp_specs.h:452
#define BUGCODE_USB_DRIVER
Definition: dmp_specs.h:520
#define KERNEL_APC_PENDING_DURING_EXIT
Definition: dmp_specs.h:329
#define USER_MODE_HEALTH_MONITOR
Definition: dmp_specs.h:443
#define XBOX_ERACTRL_CS_TIMEOUT
Definition: dmp_specs.h:650
#define INVALID_IO_BOOST_STATE
Definition: dmp_specs.h:577
#define IPI_WATCHDOG_TIMEOUT
Definition: dmp_specs.h:648
#define ATTEMPTED_SWITCH_FROM_DPC
Definition: dmp_specs.h:456
#define TCPIP_AOAC_NIC_ACTIVE_REFERENCE_LEAK
Definition: dmp_specs.h:591
#define DRIVER_UNMAPPING_INVALID_VIEW
Definition: dmp_specs.h:485
#define VIDEO_DRIVER_DEBUG_REPORT_REQUEST
Definition: dmp_specs.h:453
#define EVENT_TRACING_FATAL_ERROR
Definition: dmp_specs.h:547
#define CRYPTO_LIBRARY_INTERNAL_ERROR
Definition: dmp_specs.h:608
#define CRITICAL_OBJECT_TERMINATION
Definition: dmp_specs.h:511
#define DRIVER_VERIFIER_DETECTED_VIOLATION
Definition: dmp_specs.h:466
#define CRYPTO_SELF_TEST_FAILURE
Definition: dmp_specs.h:553
#define TERMINAL_SERVER_DRIVER_MADE_INCORRECT_MEMORY_REFERENCE
Definition: dmp_specs.h:477
#define SYSTEM_THREAD_EXCEPTION_NOT_HANDLED_M
Definition: dmp_specs.h:654
#define INVALID_KERNEL_HANDLE
Definition: dmp_specs.h:434
#define XNS_INTERNAL_ERROR
Definition: dmp_specs.h:384
#define IRQL_NOT_GREATER_OR_EQUAL
Definition: dmp_specs.h:306
#define WORKER_THREAD_INVALID_STATE
Definition: dmp_specs.h:640
#define DMP_PAGE_SIZE
Definition: dmp_specs.h:25
#define FTDISK_INTERNAL_ERROR
Definition: dmp_specs.h:385
#define DEREF_UNKNOWN_LOGON_SESSION
Definition: dmp_specs.h:367
#define CANCEL_STATE_IN_COMPLETED_IRP
Definition: dmp_specs.h:369
#define SESSION_HAS_VALID_SPECIAL_POOL_ON_EXIT
Definition: dmp_specs.h:504
#define FAT_FILE_SYSTEM
Definition: dmp_specs.h:332
#define MISMATCHED_HAL
Definition: dmp_specs.h:418
#define DIRTY_NOWRITE_PAGES_CONGESTION
Definition: dmp_specs.h:519
#define SYSTEM_UNWIND_PREVIOUS_USER
Definition: dmp_specs.h:355
#define PCI_VERIFIER_DETECTED_VIOLATION
Definition: dmp_specs.h:513
#define NETWORK_BOOT_DUPLICATE_ADDRESS
Definition: dmp_specs.h:460
#define BUGCODE_ID_DRIVER
Definition: dmp_specs.h:480
#define CRITICAL_STRUCTURE_CORRUPTION
Definition: dmp_specs.h:530
#define SYSTEM_SCAN_AT_RAISED_IRQL_CAUGHT_IMPROPER_DRIVER_UNLOAD
Definition: dmp_specs.h:482
#define DMP_BMP_FULL_MAGIC
Definition: dmp_specs.h:13
#define PORT_DRIVER_INTERNAL
Definition: dmp_specs.h:341
#define THREAD_NOT_MUTEX_OWNER
Definition: dmp_specs.h:314
#define FSRTL_EXTRA_CREATE_PARAMETER_VIOLATION
Definition: dmp_specs.h:532
#define INVALID_RUNDOWN_PROTECTION_FLAGS
Definition: dmp_specs.h:605
#define PANIC_STACK_SWITCH
Definition: dmp_specs.h:340
#define DRIVER_RETURNED_STATUS_REPARSE_FOR_VOLUME_OPEN
Definition: dmp_specs.h:516
#define BUGCODE_USB3_DRIVER
Definition: dmp_specs.h:581
#define KERNEL_MODE_EXCEPTION_NOT_HANDLED
Definition: dmp_specs.h:430
#define NO_PAGES_AVAILABLE
Definition: dmp_specs.h:374
#define PCI_BUS_DRIVER_INTERNAL
Definition: dmp_specs.h:446
#define PHASE0_EXCEPTION
Definition: dmp_specs.h:417
#define DRIVER_CORRUPTED_SYSPTES
Definition: dmp_specs.h:489
#define OBJECT1_INITIALIZATION_FAILED
Definition: dmp_specs.h:395
#define SYNTHETIC_WATCHDOG_TIMEOUT
Definition: dmp_specs.h:634
RZ_API void Ht_() free(HtName_(Ht) *ht)
Definition: ht_inc.c:130
voidpf void uLong size
Definition: ioapi.h:138
voidpf void * buf
Definition: ioapi.h:138
uint8_t ut8
Definition: lh5801.h:11
RZ_API RZ_OWN RzList * rz_list_newf(RzListFree f)
Returns a new initialized RzList pointer and sets the free method.
Definition: list.c:248
RZ_API RZ_BORROW RzListIter * rz_list_push(RZ_NONNULL RzList *list, void *item)
Alias for rz_list_append.
Definition: list.c:60
RZ_API RZ_BORROW RzListIter * rz_list_append(RZ_NONNULL RzList *list, void *data)
Appends at the end of the list a new element.
Definition: list.c:288
RZ_API void rz_list_free(RZ_NONNULL RzList *list)
Empties the list and frees the list pointer.
Definition: list.c:137
void * calloc(size_t number, size_t size)
Definition: malloc.c:102
static int run(int i, const char *arg)
Definition: rz-bb.c:19
RZ_API RzBitmap * rz_bitmap_new(size_t len)
Definition: bitmap.c:16
RZ_API void rz_bitmap_set_bytes(RzBitmap *b, const ut8 *buf, int len)
Definition: bitmap.c:26
RZ_API int rz_bitmap_test(RzBitmap *b, size_t bit)
Definition: bitmap.c:52
RZ_API void rz_bitmap_free(RzBitmap *b)
Definition: bitmap.c:33
RZ_API st64 rz_buf_seek(RZ_NONNULL RzBuffer *b, st64 addr, int whence)
Modify the current cursor position in the buffer.
Definition: buf.c:1166
RZ_API RzBuffer * rz_buf_ref(RzBuffer *b)
Increment the reference count of the buffer.
Definition: buf.c:668
RZ_API st64 rz_buf_read_at(RZ_NONNULL RzBuffer *b, ut64 addr, RZ_NONNULL RZ_OUT ut8 *buf, ut64 len)
Read len bytes of the buffer at the specified address.
Definition: buf.c:1136
#define rz_buf_read_le32_at(b, addr, result)
Definition: rz_buf.h:271
#define rz_buf_read_le32(b, result)
Definition: rz_buf.h:267
#define rz_buf_read_le64(b, result)
Definition: rz_buf.h:268
RZ_API void rz_buf_free(RzBuffer *b)
Free all internal data hold by the buffer and the buffer.
Definition: buf.c:1253
RZ_API st64 rz_buf_read(RZ_NONNULL RzBuffer *b, RZ_NONNULL RZ_OUT ut8 *buf, ut64 len)
RZ_API ut64 rz_buf_size(RZ_NONNULL RzBuffer *b)
Return the size of the buffer.
Definition: buf.c:1225
#define rz_buf_read_le64_at(b, addr, result)
Definition: rz_buf.h:272
void(* RzListFree)(void *ptr)
Definition: rz_list.h:11
#define RZ_LOG_WARN(fmtstr,...)
Definition: rz_log.h:56
#define RZ_LOG_ERROR(fmtstr,...)
Definition: rz_log.h:58
RZ_API int rz_str_utf16_to_utf8(ut8 *dst, int len_dst, const ut8 *src, int len_src, bool little_endian)
Definition: str.c:2884
#define RZ_NEW0(x)
Definition: rz_types.h:284
#define RZ_NEW(x)
Definition: rz_types.h:285
#define rz_offsetof(type, member)
Definition: rz_types.h:360
RZ_API Sdb * sdb_new0(void)
Definition: sdb.c:43
ut32 DumpType
Definition: dmp_specs.h:114
dmp64_p_memory_desc PhysicalMemoryBlock
Definition: dmp_specs.h:109
ut64 KdDebuggerDataBlock
Definition: dmp_specs.h:107
ut64 DirectoryTableBase
Definition: dmp_specs.h:94
ut32 ThreadOffset
Definition: dmp_specs.h:180
union dmp64_triage::@133 ArchitectureSpecific
ut32 SizeOfDump
Definition: dmp_specs.h:172
ut32 ProcessOffset
Definition: dmp_specs.h:179
ut32 PrcbOffset
Definition: dmp_specs.h:178
ut64 DataPageAddress
Definition: dmp_specs.h:197
ut32 SizeOfCallStack
Definition: dmp_specs.h:182
ut32 StringPoolSize
Definition: dmp_specs.h:186
ut32 ContextOffset
Definition: dmp_specs.h:174
ut32 DebuggerDataOffset
Definition: dmp_specs.h:200
ut64 TopOfStack
Definition: dmp_specs.h:189
ut32 BrokenDriverOffset
Definition: dmp_specs.h:187
ut32 StringPoolOffset
Definition: dmp_specs.h:185
ut32 CallStackOffset
Definition: dmp_specs.h:181
ut32 TriageOptions
Definition: dmp_specs.h:188
ut32 DataPageSize
Definition: dmp_specs.h:199
ut32 DebuggerDataSize
Definition: dmp_specs.h:201
ut32 DriverCount
Definition: dmp_specs.h:184
ut32 DataBlocksCount
Definition: dmp_specs.h:203
ut32 DataPageOffset
Definition: dmp_specs.h:198
ut32 ExceptionOffset
Definition: dmp_specs.h:175
ut32 ValidOffset
Definition: dmp_specs.h:173
ut32 DriverListOffset
Definition: dmp_specs.h:183
ut32 UnloadedDriversOffset
Definition: dmp_specs.h:177
ut32 DataBlocksOffset
Definition: dmp_specs.h:202
ut32 MmOffset
Definition: dmp_specs.h:176
ut32 ServicePackBuild
Definition: dmp_specs.h:171
ut64 TotalPresentPages
Definition: dmp_specs.h:136
ut32 size
Definition: dmp64.h:19
ut64 base
Definition: dmp64.h:21
ut32 timestamp
Definition: dmp64.h:20
char * file
Definition: dmp64.h:18
ut64 size
Definition: dmp64.h:14
ut64 file_offset
Definition: dmp64.h:13
ut64 start
Definition: dmp64.h:12
Definition: gzappend.c:170
RzList * pages
Definition: dmp64.h:32
ut8 * bitmap
Definition: dmp64.h:30
dmp64_header * header
Definition: dmp64.h:25
dmp_bmp_header * bmp_header
Definition: dmp64.h:26
dmp_p_memory_run * runs
Definition: dmp64.h:29
RzList * datablocks
Definition: dmp64.h:33
RzList * drivers
Definition: dmp64.h:34
RzBuffer * b
Definition: dmp64.h:36
dmp64_triage * triage64_header
Definition: dmp64.h:27
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
#define SEEK_SET
Definition: zip.c:88