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

Address code quality issues identified in Zcash audit #30

Merged
merged 2 commits into from
Dec 3, 2023

Conversation

lopopolo
Copy link
Member

@lopopolo lopopolo commented Dec 3, 2023

  • Return a const PCWSTR from ffi::Guard to pass to lstrlenW to be consistent with the &self receiver.
  • Fixup an error in a comment relating to interpreting the value returned by lstrlenW.
  • Add additional safety documentation to impl Drop for ffi::Guard.

Fixes #16.

cc @str4d

- Return a const `PCWSTR` from `ffi::Guard` to pass to `lstrlenW` to be
  consistent with the `&self` receiver.
- Fixup an error in a comment relating to interpreting the value
  returned by `lstrlenW`.
- Add additional safety documentation to `impl Drop for ffi::Guard`.

Fixes #16.
@lopopolo lopopolo added A-ffi Area: Native bindings and bindgen. C-quality Category: Refactoring, cleanup, and quality improvements. O-windows Target: Support for building on Windows targets like `x86_64-pc-windows-msvc`. labels Dec 3, 2023
@lopopolo lopopolo merged commit 6f1f7fc into trunk Dec 3, 2023
14 checks passed
@lopopolo lopopolo deleted the lopopolo/zcash-audit-fixups branch December 3, 2023 01:20
@lopopolo lopopolo mentioned this pull request Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ffi Area: Native bindings and bindgen. C-quality Category: Refactoring, cleanup, and quality improvements. O-windows Target: Support for building on Windows targets like `x86_64-pc-windows-msvc`.
Development

Successfully merging this pull request may close these issues.

Address nits from Zcash audit
1 participant