Skip to content

[WinUI] Password Obfuscation causes unhandled crash #33334

Description

@SebKueZuc

Description

On Customer system we sometimes observe an unhandled crash from Maui password obfuscation. It seems to happen only on Windows.
I cannot provide information on how to reproduce it and all I have is our crash traces from sentry.
From what I can see the password box is still empty but for some reason it tries to obfuscate the text with a lengh of UInt32.MaxValue

startIndex ('4294967295') must be less than or equal to '0'. (Parameter 'startIndex')
Actual value was 4294967295.

I will attach a screenshot of the stacktrace to allow fixing.

Image

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

10.0.20

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions