Fix webauthnwin c types size#31407
Conversation
codingllama
left a comment
There was a problem hiding this comment.
Many thanks. I completely missed the structs had to be aligned.
Any ideas on how we could test to avoid future size/align regressions?
Tener
left a comment
There was a problem hiding this comment.
Tricky one. Having this tested would be lovely, for sure.
Do you have some ideas? I have tried using |
There was a problem hiding this comment.
Hmm, if the size of the struct matters, shouldn't we be more explicit? A *uint16 can have different sizes on different platforms, no?
There was a problem hiding this comment.
i believe we don't support 32bit tsh at all for windows
|
Manually verified the fix as well, looking good. FYI, I'm happy to merge this and do whatever testing/refinements we see fit as a follow up. |
Yep, let's merge it. |
d3046b5 to
ea2126e
Compare
ea2126e to
8384d81
Compare
|
@tobiaszheller See the table below for backport results.
|
#29750 removed unused
iconfields from webauthwin internal C types. Unfortunately it causes panic because now types have wrong size.Manual tests on windows machine confirm issue and fix.
Fixes: #31333
Changelog: Fix WebAuthn Windows registration breakage