Skip to content

Commit e40700b

Browse files
committed
fix(fd_vm_tool): initialize missing fields
1 parent 42098e5 commit e40700b

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/flamenco/vm/fd_vm_tool.c

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,16 @@ cmd_validate( char const * bin_path ) {
129129
fd_vm_tool_prog_create( &tool_prog, bin_path );
130130

131131
fd_vm_t vm = {
132-
.text = tool_prog.prog->text,
133-
.text_cnt = tool_prog.prog->info.text_cnt,
134-
.text_off = tool_prog.prog->info.text_off,
135-
.entry_pc = tool_prog.prog->entry_pc,
136-
.calldests = tool_prog.prog->calldests,
137-
.syscalls = tool_prog.syscalls,
138-
.trace = NULL
132+
.rodata = tool_prog.prog->rodata,
133+
.rodata_sz = tool_prog.prog->rodata_sz,
134+
.text = tool_prog.prog->text,
135+
.text_cnt = tool_prog.prog->info.text_cnt,
136+
.text_sz = tool_prog.prog->info.text_sz,
137+
.text_off = tool_prog.prog->info.text_off,
138+
.entry_pc = tool_prog.prog->entry_pc,
139+
.calldests = tool_prog.prog->calldests,
140+
.syscalls = tool_prog.syscalls,
141+
.trace = NULL
139142
};
140143

141144
/* FIXME: DO WE REALLY NEED THE WHOLE VM TO VALIDATE? */

0 commit comments

Comments
 (0)