Skip to content

Commit 40425a8

Browse files
committed
sol compat fixes
1 parent 9094c13 commit 40425a8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/flamenco/runtime/tests/fd_sol_compat.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ sol_compat_shred_parse_v1( uchar * out,
298298
/*
299299
* execute_v2
300300
Unlike sol_compat_execute_v1 APIs, v2 APIs use flatbuffers for
301-
zero-copy decoding. Returns SOL_COMPAT_SUCCESS on success and
302-
SOL_COMPAT_FAILURE on failure.
301+
zero-copy decoding. Returns SOL_COMPAT_V2_SUCCESS on success and
302+
SOL_COMPAT_V2_FAILURE on failure.
303303
304304
out: output buffer
305305
out_sz: output buffer size
@@ -323,13 +323,13 @@ sol_compat_elf_loader_v2( uchar * out,
323323
if( FD_UNLIKELY( !input ) ) return 0;
324324

325325
int err = fd_solfuzz_fb_execute_wrapper( runner, input, fd_solfuzz_fb_elf_loader_run );
326-
if( FD_UNLIKELY( err==SOL_COMPAT_FAILURE ) ) return err;
326+
if( FD_UNLIKELY( err==SOL_COMPAT_V2_FAILURE ) ) return err;
327327

328328
ulong buffer_sz = flatcc_builder_get_buffer_size( runner->fb_builder );
329329
flatcc_builder_copy_buffer( runner->fb_builder, out, buffer_sz );
330330
*out_sz = buffer_sz;
331331

332-
return SOL_COMPAT_SUCCESS;
332+
return SOL_COMPAT_V2_SUCCESS;
333333

334334

335335

src/flamenco/runtime/tests/fd_sol_compat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
FD_PROTOTYPES_BEGIN
2424

25-
#define SOL_COMPAT_SUCCESS (0)
26-
#define SOL_COMPAT_FAILURE (-1)
25+
#define SOL_COMPAT_V2_SUCCESS (0)
26+
#define SOL_COMPAT_V2_FAILURE (-1)
2727

2828
/* sol_compat_init installs a new solfuzz execution context into the
2929
current process. Under the hood, acquires some demand-paged memory

src/flamenco/runtime/tests/fd_solfuzz_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fd_solfuzz_pb_execute_wrapper( fd_solfuzz_runner_t * runner,
6161

6262
typedef int( exec_test_run_fb_fn_t )( fd_solfuzz_runner_t *, void const * );
6363

64-
/* Returns SOL_COMPAT_SUCCESS on success and SOL_COMPAT_FAILURE on
64+
/* Returns SOL_COMPAT_V2_SUCCESS on success and SOL_COMPAT_V2_FAILURE on
6565
failure */
6666
static inline int
6767
fd_solfuzz_fb_execute_wrapper( fd_solfuzz_runner_t * runner,

0 commit comments

Comments
 (0)