Skip to content

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

@TheBestTvarynka

Description

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

    invalidThis doesn't seem righttype: bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions