Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mspack.h>
Go to the source code of this file.
Classes | |
struct | mem_buf |
struct | mem_file |
Functions | |
static void * | mem_alloc (struct mspack_system *self, size_t bytes) |
static void | mem_free (void *buffer) |
static void | mem_copy (void *src, void *dest, size_t bytes) |
static void | mem_msg (struct mem_file *file, const char *format,...) |
static struct mem_file * | mem_open (struct mspack_system *self, struct mem_buf *fn, int mode) |
static void | mem_close (struct mem_file *fh) |
static int | mem_read (struct mem_file *fh, void *buffer, int bytes) |
static int | mem_write (struct mem_file *fh, void *buffer, int bytes) |
static int | mem_seek (struct mem_file *fh, off_t offset, int mode) |
static off_t | mem_tell (struct mem_file *fh) |
int | main () |
Variables | |
static struct mspack_system | mem_system |
static unsigned char | embedded_cab [] |
int main | ( | void | ) |
Definition at line 131 of file cabd_memory.c.
References cabd, mscab_decompressor::close, embedded_cab, err, test-lz4-list::exit, mscab_decompressor::extract, file, mscabd_cabinet::files, free(), mscab_decompressor::last_error, malloc(), mem_system, mspack_create_cab_decompressor(), mspack_destroy_cab_decompressor(), MSPACK_SYS_SELFTEST, file::next, mscab_decompressor::open, output, printf(), and source.
|
static |
Definition at line 23 of file cabd_memory.c.
References bytes, and malloc().
Referenced by mem_open().
|
static |
|
static |
Definition at line 33 of file cabd_memory.c.
References bytes, dest, memcpy(), and src.
Referenced by mem_read(), and mem_write().
|
static |
Definition at line 38 of file cabd_memory.c.
|
static |
Definition at line 42 of file cabd_memory.c.
References fh, fn, mem_alloc(), MSPACK_SYS_OPEN_APPEND, and NULL.
Definition at line 59 of file cabd_memory.c.
References bytes, fh, and mem_copy().
Referenced by rop_classify_arithmetic(), rop_classify_arithmetic_const(), rop_classify_constant(), rop_classify_mov(), and trace_hook_mem_read().
Definition at line 77 of file cabd_memory.c.
References fh, MSPACK_SYS_SEEK_CUR, MSPACK_SYS_SEEK_END, and MSPACK_SYS_SEEK_START.
Definition at line 90 of file cabd_memory.c.
Definition at line 68 of file cabd_memory.c.
References bytes, fh, and mem_copy().
Referenced by rop_classify_arithmetic(), rop_classify_arithmetic_const(), rop_classify_constant(), rop_classify_mov(), and trace_hook_mem_write().
|
static |
Definition at line 111 of file cabd_memory.c.
Referenced by main().
|
static |
Definition at line 90 of file cabd_memory.c.
Referenced by main().