Devolutions / Devolutions/sspi-rs

Fix invalid wide strings (UTF-16) handling

Open
#306 3 comments 0 reactions 0 assignees View on GitHub
invalid type: bug
Dominant language
Rust
Stars
83
Forks
50
Avg merge
3d 12h
Merged PRs (30d)
9

Description

Usually, we multiply the chars count by 2 to calculate the total bytes in the wide string. For example,
https://github.com/Devolutions/sspi-rs/blob/bef5fd24328871dbe9b6bbf3483bc84b8b9641ef/ffi/src/sspi/sec_winnt_auth_identity.rs#L323

Read this thread for more details: https://github.com/Devolutions/sspi-rs/pull/304#discussion_r1795097144

In the scope of this issue, we need to fix it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.