Skip to content

Fix invalid wide strings (UTF-16) handling #306

Open
@TheBestTvarynka

Description

@TheBestTvarynka

Usually, we multiply the chars count by 2 to calculate the total bytes in the wide string. For example,

domain: raw_str_into_bytes((*auth_data).domain as *const _, (*auth_data).domain_length as usize * 2),

Read this thread for more details: #304 (comment)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions