Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(runtime-c-api) Check buffer size before creating the slice, and fix wasmer_last_error_message returned value #432

Merged
merged 6 commits into from May 13, 2019

Commits on May 10, 2019

  1. feat(runtime-c-api) Check buffer size before creating the slice.

    It's safer to check the buffer size is large enough to hold the error
    message before creating the slice from raw parts.
    
    Also, this patch remove the need for `last_error`, simplifying the
    code a little bit. The `length` variable is casted to `usize` once.
    Hywan committed May 10, 2019
    Copy the full SHA
    1d55530 View commit details
    Browse the repository at this point in the history
  2. fix(runtime-c-api) wasmer_last_error_message returns the length + 1.

    Returning the error message's length + 1 mimics the
    `wasmer_last_error_length` function that counts the trailing null
    byte.
    Hywan committed May 10, 2019
    Copy the full SHA
    7d2721e View commit details
    Browse the repository at this point in the history

Commits on May 13, 2019

  1. Copy the full SHA
    bedd305 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    8c8586f View commit details
    Browse the repository at this point in the history
  3. chore(changelog) Add wasmerio#432.

    Hywan committed May 13, 2019
    Copy the full SHA
    216e000 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    b050144 View commit details
    Browse the repository at this point in the history