Skip to content

Commit

Permalink
Merge pull request #6 from wrv/main
Browse files Browse the repository at this point in the history
Fix assert in wasm-hello example
  • Loading branch information
shravanrn authored Feb 23, 2024
2 parents ecd3a83 + ca2e380 commit a1dc855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chapters/examples/wasm-hello-example/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ int main(int argc, char const *argv[]) {
void hello_cb(rlbox_sandbox_mylib& _, tainted_mylib<const char*> str) {
auto checked_string =
str.copy_and_verify_string([](unique_ptr<char[]> val) {
release_assert(val != nullptr && strlen(val.get()) < 1024);
release_assert(val != nullptr && strlen(val.get()) < 1024, "val is null or greater than 1024\n");
return move(val);
});
printf("hello_cb: %s\n", checked_string.get());
Expand Down

0 comments on commit a1dc855

Please sign in to comment.