mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00:00
If the BufferSource is already an Uint8Array which is a view of a subset of the underlying ArrayBuffer then accessing .buffer caused the whole backing buffer to be returned. Fix this by just returning the original Uint8Array as-is. Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>