1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-18 15:47:57 +01:00
bitwarden-browser/libs
Lorenz Brun 6d89c0f157
fido2-utils: fix BufferSource conversions (#11784)
The original implementation of bufferSourceToUint8Array was incorrect as
it did not consider that TypedArray instances represent a view of the
underlying ArrayBuffer which does not necessarily cover the entire
backing ArrayBuffer. This resulted in the output of this function
containing data which would not be logically contained in the input.

This was partially fixed by #8787 for the common case of the input
already being an Uint8Array, but it was still broken for any other
TypedArrays. But #8222 introduced another copy of the original broken
code, breaking the Uint8Array case again.

Fix this once and hopefully for the last time with a correct
implementation of bufferSourceToUint8Array and using that in the
appropriate places instead of open-coding it. In addition there are now
tests which exercise most edge cases with regards to ArrayBuffer and
TypedArrays.
2024-11-11 14:54:36 -05:00
..
.vscode Multi root workspace tweaks (#2858) 2022-06-13 21:39:36 -05:00
admin-console [PM-10323] Add delete option to managed members (#11655) 2024-11-04 16:19:30 +00:00
angular PM-10393 SSH keys (#10825) 2024-11-08 11:01:31 +01:00
auth [PM-5237] Clients, Self Hosted: Login - Hide "Create account" when registration disabled (#11811) 2024-11-06 17:57:07 -05:00
billing create team owned libs for billing, admin-console, platform (#7233) 2023-12-15 09:02:21 -05:00
common fido2-utils: fix BufferSource conversions (#11784) 2024-11-11 14:54:36 -05:00
components [CL-500] Add disclosure component and directive (#11865) 2024-11-07 16:54:49 -05:00
importer PM-10393 SSH keys (#10825) 2024-11-08 11:01:31 +01:00
key-management [PM-13673] Require UserId In CompareHash Method (#11568) 2024-11-04 15:11:59 -05:00
node [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
platform [PM-8582] Move Safari browser check to libs/platform (#11007) 2024-09-16 15:36:05 -04:00
shared [CL-425] - add tools card component (#11375) 2024-10-11 23:00:45 +02:00
tools [PM-12338] fix length hint on passphrase num words field (#11963) 2024-11-11 14:23:02 -05:00
vault PM-10393 SSH keys (#10825) 2024-11-08 11:01:31 +01:00