@@ -412,20 +412,21 @@ struct evmc_result
412
412
/**
413
413
* The reference to output data.
414
414
*
415
- * The output contains data coming from RETURN opcode (iff evmc_result::code
416
- * field is ::EVMC_SUCCESS) or from REVERT opcode.
415
+ * The output contains data coming from RETURN opcode (iff evmc_result::code
416
+ * field is ::EVMC_SUCCESS) or from REVERT opcode.
417
417
*
418
- * The memory containing the output data is owned by EVM and has to be
419
- * freed with evmc_result::release().
418
+ * The memory containing the output data is owned by EVM and has to be
419
+ * freed with evmc_result::release().
420
420
*
421
- * This MAY be NULL.
421
+ * This pointer MAY be NULL.
422
+ * If evmc_result::output_size is 0 this pointer MUST NOT be dereferenced.
422
423
*/
423
424
const uint8_t * output_data ;
424
425
425
426
/**
426
427
* The size of the output data.
427
428
*
428
- * If output_data is NULL this MUST be 0.
429
+ * If evmc_result:: output_data is NULL this MUST be 0.
429
430
*/
430
431
size_t output_size ;
431
432
@@ -463,13 +464,13 @@ struct evmc_result
463
464
/**
464
465
* Reserved data that MAY be used by a evmc_result object creator.
465
466
*
466
- * This reserved 4 bytes together with 20 bytes from create_address form
467
- * 24 bytes of memory called "optional data" within evmc_result struct
468
- * to be optionally used by the evmc_result object creator.
467
+ * This reserved 4 bytes together with 20 bytes from create_address form
468
+ * 24 bytes of memory called "optional data" within evmc_result struct
469
+ * to be optionally used by the evmc_result object creator.
469
470
*
470
- * @see evmc_result_optional_data, evmc_get_optional_data().
471
+ * @see evmc_result_optional_data, evmc_get_optional_data().
471
472
*
472
- * Also extends the size of the evmc_result to 64 bytes (full cache line).
473
+ * Also extends the size of the evmc_result to 64 bytes (full cache line).
473
474
*/
474
475
uint8_t padding [4 ];
475
476
};
@@ -1111,7 +1112,7 @@ struct evmc_vm
1111
1112
/**
1112
1113
* Optional pointer to function modifying VM's options.
1113
1114
*
1114
- * If the VM does not support this feature the pointer can be NULL.
1115
+ * If the VM does not support this feature the pointer can be NULL.
1115
1116
*/
1116
1117
evmc_set_option_fn set_option ;
1117
1118
};
0 commit comments