26 if (index >= poolsize || !(cpool = pool[index])) {
56 attr->
info = (
void *)acv;
150 attr->
info = (
void *)ac;
167 attr->
info = (
void *)asf;
218 attr->
info = (
void *)alnt;
254 attr->
info = (
void *)alvt;
290 attr->
info = (
void *)alvtt;
305 goto java_attribute_set_module_bad;
310 goto java_attribute_set_module_bad;
316 goto java_attribute_set_module_bad;
322 goto java_attribute_set_module_bad;
328 goto java_attribute_set_module_bad;
334 goto java_attribute_set_module_bad;
340 goto java_attribute_set_module_bad;
344 goto java_attribute_set_module_bad;
349 goto java_attribute_set_module_bad;
356 goto java_attribute_set_module_bad;
362 goto java_attribute_set_module_bad;
368 goto java_attribute_set_module_bad;
372 goto java_attribute_set_module_bad;
377 goto java_attribute_set_module_bad;
384 goto java_attribute_set_module_bad;
390 goto java_attribute_set_module_bad;
395 goto java_attribute_set_module_bad;
401 goto java_attribute_set_module_bad;
407 goto java_attribute_set_module_bad;
412 goto java_attribute_set_module_bad;
416 goto java_attribute_set_module_bad;
421 goto java_attribute_set_module_bad;
428 attr->
info = (
void *)am;
431 java_attribute_set_module_bad:
484 attr->
info = (
void *)amp;
500 attr->
info = (
void *)ammc;
511 if (!strcmp(
name,
"ConstantValue")) {
513 }
else if (!strcmp(
name,
"Code")) {
515 }
else if (!strcmp(
name,
"SourceFile")) {
517 }
else if (!strcmp(
name,
"SourceDebugExtension")) {
519 }
else if (!strcmp(
name,
"LineNumberTable")) {
521 }
else if (!strcmp(
name,
"LocalVariableTable")) {
523 }
else if (!strcmp(
name,
"LocalVariableTypeTable")) {
525 }
else if (!strcmp(
name,
"Module")) {
527 }
else if (!strcmp(
name,
"ModulePackages")) {
529 }
else if (!strcmp(
name,
"ModuleMainClass")) {
560 if (!attr || !attr->
info) {
bool java_attribute_set_sourcefile(Attribute *attr, RzBuffer *buf)
bool java_attribute_set_localvariabletypetable(Attribute *attr, RzBuffer *buf)
bool java_attribute_resolve(ConstPool **pool, ut32 poolsize, Attribute *attr, RzBuffer *buf, bool is_oak)
bool java_attribute_set_modulemainclass(Attribute *attr, RzBuffer *buf)
bool java_attribute_set_module(Attribute *attr, RzBuffer *buf)
bool java_attribute_set_sourcedebugextension(Attribute *attr, RzBuffer *buf)
bool java_attribute_set_modulepackages(Attribute *attr, RzBuffer *buf)
bool java_attribute_set_localvariabletable(Attribute *attr, RzBuffer *buf)
Attribute * java_attribute_new(RzBuffer *buf, ut64 offset)
void java_attribute_free(Attribute *attr)
static ut8 * make_string(RzBuffer *buf, st64 size)
static char * resolve_const_pool_index(ConstPool **pool, ut32 poolsize, ut32 index)
bool java_attribute_set_code(ConstPool **pool, ut32 poolsize, Attribute *attr, RzBuffer *buf, bool is_oak)
bool java_attribute_set_linenumbertable(Attribute *attr, RzBuffer *buf)
bool java_attribute_set_unknown(Attribute *attr, RzBuffer *buf)
bool java_attribute_set_constantvalue(Attribute *attr, RzBuffer *buf)
@ ATTRIBUTE_TYPE_MODULEMAINCLASS
@ ATTRIBUTE_TYPE_SOURCEFILE
@ ATTRIBUTE_TYPE_MODULEPACKAGES
@ ATTRIBUTE_TYPE_LOCALVARIABLETYPETABLE
@ ATTRIBUTE_TYPE_LOCALVARIABLETABLE
@ ATTRIBUTE_TYPE_CONSTANTVALUE
@ ATTRIBUTE_TYPE_LINENUMBERTABLE
@ ATTRIBUTE_TYPE_SOURCEDEBUGEXTENSION
char * java_constant_pool_stringify(const ConstPool *cpool)
RZ_API void Ht_() free(HtName_(Ht) *ht)
void * malloc(size_t size)
#define rz_warn_if_reached()
#define rz_warn_if_fail(expr)
#define rz_return_val_if_fail(expr, val)
RZ_API st64 rz_buf_seek(RZ_NONNULL RzBuffer *b, st64 addr, int whence)
Modify the current cursor position in the buffer.
#define rz_buf_read_be16(b, result)
#define rz_buf_read_be32(b, result)
RZ_API bool rz_buf_read8(RZ_NONNULL RzBuffer *b, RZ_NONNULL RZ_OUT ut8 *result)
Read a byte at the cursor in the buffer.
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.
ExceptionTable * exceptions
LocalVariableTable * table
LocalVariableTypeTable * table
ut16 module_version_index
ut16 attribute_name_index
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
#define buffer_size(buffer)