Rizin
unix-like reverse engineering framework and cli tools
|
#include "class_attribute.h"
Go to the source code of this file.
void java_attribute_free | ( | Attribute * | attr | ) |
Definition at line 559 of file class_attribute.c.
References ATTRIBUTE_TYPE_CODE, ATTRIBUTE_TYPE_LINENUMBERTABLE, ATTRIBUTE_TYPE_LOCALVARIABLETABLE, ATTRIBUTE_TYPE_MODULE, ATTRIBUTE_TYPE_MODULEPACKAGES, java_attribute_code_t::attributes, java_attribute_code_t::attributes_count, java_attribute_code_t::exceptions, java_attribute_module_t::exports, java_attribute_module_t::exports_count, free(), i, java_attribute_t::info, java_attribute_module_t::opens, java_attribute_module_t::opens_count, java_attribute_module_packages_t::package_index, java_attribute_module_t::provides, java_attribute_module_t::provides_count, java_attribute_module_t::requires, java_attribute_line_number_table_t::table, java_attribute_local_variable_table_t::table, java_module_open_t::to_indices, java_module_export_t::to_indices, java_attribute_t::type, java_attribute_module_t::uses_index, and java_module_provide_t::with_indices.
Referenced by java_attribute_set_code(), java_class_parse(), java_field_free(), java_field_new(), java_method_free(), java_method_new(), and rz_bin_java_class_free().
Definition at line 540 of file class_attribute.c.
References java_attribute_t::attribute_length, java_attribute_t::attribute_name_index, free(), NULL, java_attribute_t::offset, rz_buf_read_be16, rz_buf_read_be32, RZ_NEW0, and rz_return_val_if_fail.
Referenced by java_attribute_set_code(), java_class_parse(), java_field_new(), and java_method_new().
bool java_attribute_resolve | ( | ConstPool ** | pool, |
ut32 | poolsize, | ||
Attribute * | attr, | ||
RzBuffer * | buf, | ||
bool | is_oak | ||
) |
Definition at line 504 of file class_attribute.c.
References java_attribute_t::attribute_name_index, free(), java_attribute_set_code(), java_attribute_set_constantvalue(), java_attribute_set_linenumbertable(), java_attribute_set_localvariabletable(), java_attribute_set_localvariabletypetable(), java_attribute_set_module(), java_attribute_set_modulemainclass(), java_attribute_set_modulepackages(), java_attribute_set_sourcedebugextension(), java_attribute_set_sourcefile(), java_attribute_set_unknown(), and resolve_const_pool_index().
Referenced by java_attribute_set_code(), java_class_parse(), java_field_new(), and java_method_new().
bool java_attribute_set_code | ( | ConstPool ** | pool, |
ut32 | poolsize, | ||
Attribute * | attr, | ||
RzBuffer * | buf, | ||
bool | is_oak | ||
) |
Definition at line 60 of file class_attribute.c.
References ATTRIBUTE_TYPE_CODE, java_attribute_code_t::attributes, java_attribute_code_t::attributes_count, java_exception_table_t::catch_type, java_attribute_code_t::code_length, java_attribute_code_t::code_offset, java_exception_table_t::end_pc, java_attribute_code_t::exceptions, java_attribute_code_t::exceptions_count, free(), java_exception_table_t::handler_pc, i, java_attribute_t::info, java_attribute_free(), java_attribute_new(), java_attribute_resolve(), java_attribute_code_t::max_locals, java_attribute_code_t::max_stack, java_attribute_t::offset, RZ_BUF_CUR, rz_buf_read8(), rz_buf_read_be16, rz_buf_read_be32, rz_buf_seek(), RZ_NEW0, RZ_NEWS0, rz_warn_if_reached, java_exception_table_t::start_pc, java_attribute_t::type, and UT64_MAX.
Referenced by java_attribute_resolve().
Definition at line 42 of file class_attribute.c.
References java_attribute_t::attribute_length, ATTRIBUTE_TYPE_CONSTANTVALUE, free(), java_attribute_constant_value_t::index, java_attribute_t::info, rz_buf_read_be16, RZ_NEW0, rz_warn_if_fail, rz_warn_if_reached, and java_attribute_t::type.
Referenced by java_attribute_resolve().
Definition at line 189 of file class_attribute.c.
References java_attribute_t::attribute_length, ATTRIBUTE_TYPE_LINENUMBERTABLE, free(), i, java_attribute_t::info, java_line_number_table_t::line_number, rz_buf_read_be16, RZ_NEW0, RZ_NEWS0, rz_warn_if_fail, rz_warn_if_reached, java_line_number_table_t::start_pc, java_attribute_line_number_table_t::table, java_attribute_line_number_table_t::table_length, and java_attribute_t::type.
Referenced by java_attribute_resolve().
Definition at line 222 of file class_attribute.c.
References java_attribute_t::attribute_length, ATTRIBUTE_TYPE_LOCALVARIABLETABLE, java_local_variable_table_t::descriptor_index, free(), i, java_local_variable_table_t::index, java_attribute_t::info, java_local_variable_table_t::length, java_local_variable_table_t::name_index, rz_buf_read_be16, RZ_NEW0, RZ_NEWS0, rz_warn_if_fail, rz_warn_if_reached, java_local_variable_table_t::start_pc, java_attribute_local_variable_table_t::table, java_attribute_local_variable_table_t::table_length, and java_attribute_t::type.
Referenced by java_attribute_resolve().
Definition at line 258 of file class_attribute.c.
References java_attribute_t::attribute_length, ATTRIBUTE_TYPE_LOCALVARIABLETYPETABLE, free(), i, java_local_variable_type_table_t::index, java_attribute_t::info, java_local_variable_type_table_t::length, java_local_variable_type_table_t::name_index, rz_buf_read_be16, RZ_NEW0, RZ_NEWS0, rz_warn_if_fail, rz_warn_if_reached, java_local_variable_type_table_t::signature_index, java_local_variable_type_table_t::start_pc, java_attribute_local_variable_type_table_t::table, java_attribute_local_variable_type_table_t::table_length, and java_attribute_t::type.
Referenced by java_attribute_resolve().
Definition at line 294 of file class_attribute.c.
References java_attribute_t::attribute_length, ATTRIBUTE_TYPE_MODULE, java_attribute_module_t::exports, java_attribute_module_t::exports_count, java_module_open_t::flags, java_module_export_t::flags, java_module_require_t::flags, free(), i, java_module_provide_t::index, java_module_open_t::index, java_module_export_t::index, java_module_require_t::index, java_attribute_t::info, k, java_attribute_module_t::module_flags, java_attribute_module_t::module_name_index, java_attribute_module_t::module_version_index, NULL, java_attribute_module_t::opens, java_attribute_module_t::opens_count, java_attribute_module_t::provides, java_attribute_module_t::provides_count, java_attribute_module_t::requires, java_attribute_module_t::requires_count, rz_buf_read_be16, RZ_NEW0, RZ_NEWS0, rz_warn_if_fail, rz_warn_if_reached, java_module_open_t::to_count, java_module_export_t::to_count, java_module_open_t::to_indices, java_module_export_t::to_indices, java_attribute_t::type, java_attribute_module_t::uses_count, java_attribute_module_t::uses_index, java_module_require_t::version_index, java_module_provide_t::with_count, and java_module_provide_t::with_indices.
Referenced by java_attribute_resolve().
Definition at line 488 of file class_attribute.c.
References java_attribute_t::attribute_length, ATTRIBUTE_TYPE_MODULEMAINCLASS, free(), java_attribute_t::info, java_attribute_module_main_class_t::main_class_index, rz_buf_read_be16, RZ_NEW0, rz_warn_if_fail, rz_warn_if_reached, and java_attribute_t::type.
Referenced by java_attribute_resolve().
Definition at line 454 of file class_attribute.c.
References java_attribute_t::attribute_length, ATTRIBUTE_TYPE_MODULEPACKAGES, free(), java_attribute_t::info, k, java_attribute_module_packages_t::package_count, java_attribute_module_packages_t::package_index, rz_buf_read_be16, RZ_NEW0, RZ_NEWS0, rz_warn_if_fail, rz_warn_if_reached, and java_attribute_t::type.
Referenced by java_attribute_resolve().
Definition at line 171 of file class_attribute.c.
References java_attribute_t::attribute_length, ATTRIBUTE_TYPE_SOURCEDEBUGEXTENSION, java_attribute_t::info, make_string(), rz_warn_if_reached, st64, and java_attribute_t::type.
Referenced by java_attribute_resolve().
Definition at line 154 of file class_attribute.c.
References java_attribute_t::attribute_length, ATTRIBUTE_TYPE_SOURCEFILE, free(), java_attribute_source_file_t::index, java_attribute_t::info, rz_buf_read_be16, RZ_NEW0, rz_warn_if_fail, rz_warn_if_reached, and java_attribute_t::type.
Referenced by java_attribute_resolve().
Definition at line 32 of file class_attribute.c.
References java_attribute_t::attribute_length, ATTRIBUTE_TYPE_UNKNOWN, RZ_BUF_CUR, rz_buf_seek(), st64, and java_attribute_t::type.
Referenced by java_attribute_resolve().
Definition at line 6 of file class_attribute.c.
References buffer_size, free(), malloc(), NULL, rz_buf_read(), rz_buf_size(), rz_warn_if_reached, and st64.
Referenced by java_attribute_set_sourcedebugextension().
Definition at line 24 of file class_attribute.c.
References java_constant_pool_stringify(), and NULL.
Referenced by java_attribute_resolve().