8 #define GET_INTERNAL_BIN_INFO_OBJ(bf) ((LuacBinInfo *)(bf)->o->bin_obj)
20 ut8 MAJOR_MINOR_VERSION;
31 major = (MAJOR_MINOR_VERSION & 0xF0) >> 4;
32 minor = (MAJOR_MINOR_VERSION & 0x0F);
54 if (bin_info_obj ==
NULL) {
132 .desc =
"LUA Compiled File",
146 #ifndef RZ_PLUGIN_INCORE
RZ_API void rz_bin_info_free(RzBinInfo *rb)
RZ_API RZ_OWN RzList * rz_bin_maps_of_file_sections(RZ_NONNULL RzBinFile *binfile)
Create a list of RzBinMap from RzBinSections queried from the given file.
static bool load_buffer(RzBinFile *bf, RzBinObject *obj, RzBuffer *buf, Sdb *sdb)
static RzList * symbols(RzBinFile *bf)
RzBinPlugin rz_bin_plugin_luac
static RzList * strings(RzBinFile *bf)
RZ_API RzLibStruct rizin_plugin
static RzBinInfo * info(RzBinFile *bf)
static bool check_buffer(RzBuffer *buff)
static RzList * entries(RzBinFile *bf)
static RzList * sections(RzBinFile *bf)
#define GET_INTERNAL_BIN_INFO_OBJ(bf)
RZ_API RZ_OWN RzList * rz_list_clone(RZ_NONNULL const RzList *list)
Shallow copies of the list (but doesn't free its elements)
LuacBinInfo * luac_build_info(LuaProto *proto)
void lua_free_proto_entry(LuaProto *proto)
RzBinInfo * lua_parse_header_54(RzBinFile *bf, st32 major, st32 minor)
RzBinInfo * lua_parse_header_53(RzBinFile *bf, st32 major, st32 minor)
#define LUAC_MAGIC_OFFSET
LuaProto * lua_parse_body_54(RzBuffer *buffer, ut64 offset, ut64 data_size)
#define LUAC_VERSION_OFFSET
LuaProto * lua_parse_body_53(RzBuffer *buffer, ut64 offset, ut64 data_size)
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.
RZ_API ut64 rz_buf_size(RZ_NONNULL RzBuffer *b)
Return the size of the buffer.
#define RZ_LOG_ERROR(fmtstr,...)
Store valuable info when parsing. Treat luac file body as a main function.
RzBinInfo * general_info
general binary info from luac header
RzList * entry_list
list of entries
RzList * section_list
list of sections
RzList * symbol_list
list of symbols
RzList * string_list
list of strings
XX curplugin == o->plugin.