mirror of
https://github.com/radareorg/r2flutter.git
synced 2026-11-07 06:26:00 -10:00
37 lines
1.4 KiB
Plaintext
37 lines
1.4 KiB
Plaintext
NAME=serialized-class-layout-metadata
|
|
FILE=malloc://0x94
|
|
CMDS=<<EOF
|
|
L ../src/r2/core_flutter.dylib
|
|
L ../src/r2/core_flutter.so
|
|
wx 50414421f5f5dcdc8c000000000000000200000000000000303435313930376332656161383436376538343863303036376266653865643470726f647563742061726d3634206e6f2d636f6d707265737365642d706f696e746572730086828180800020c182818080808080808280838080807022c4c4c3c2c1c0c08584808080808080858086808080070040c0c5c4c0c0c0c0
|
|
r2flutter -q -j -c~{=}ref,class_id,layout.,flags.toplevel
|
|
o malloc://0x7c
|
|
wx 50414421f5f5dcdc74000000000000000200000000000000303435313930376332656161383436376538343863303036376266653865643470726f647563742061726d3634206e6f2d636f6d707265737365642d706f696e746572730086818180800020c181818080808080808280838080807022c4c4c3c2c1c0c0
|
|
r2flutter -q -j -c
|
|
r2flutter -q -j -HHH~{snapshots[0].clusters[0].fill_status}
|
|
EOF
|
|
EXPECT=<<EOF
|
|
json[0].ref = 7;
|
|
json[0].class_id = 70000;
|
|
json[0].library.ref = 2;
|
|
json[0].super.type_ref = 3;
|
|
json[0].layout.instance_size = 32;
|
|
json[0].layout.next_field_offset = 24;
|
|
json[0].layout.type_params = 1;
|
|
json[0].layout.type_arg_offset = 16;
|
|
json[0].layout.field_bitmap = 5;
|
|
json[0].flags.toplevel = false;
|
|
json[1].ref = 8;
|
|
json[1].class_id = 1048583;
|
|
json[1].library.ref = 5;
|
|
json[1].super.type_ref = 6;
|
|
json[1].layout.instance_size = 40;
|
|
json[1].layout.next_field_offset = 32;
|
|
json[1].layout.type_params = 0;
|
|
json[1].layout.type_arg_offset = 0;
|
|
json[1].flags.toplevel = true;
|
|
[]
|
|
failed
|
|
EOF
|
|
RUN
|