Files
Wand-Enhancer-k1tbyte/AsarSharp
dchukkapalli-dev 7d28eb7d52 fix(asar): correct Pickle payload buffer allocation
Pickle.Resize allocated the backing array as _header.Length + newCapacity
but advertised _capacityAfterHeader = newCapacity. On the first growth
_header is still empty, so the array ended up _headerSize (4) bytes short of
the header + capacity it claimed. A write that fills the payload then
overran the buffer, throwing an ArgumentException when the serialised asar
header was 4089-4092 bytes.

Allocate _headerSize + newCapacity instead, matching Chromium's
realloc(header_size_ + new_capacity).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 19:59:06 +00:00
..
2026-05-06 13:30:17 +03:00
2026-05-06 13:30:17 +03:00
2025-03-21 23:35:16 +02:00
2026-05-06 13:30:17 +03:00
2025-03-21 23:35:16 +02:00
2025-03-21 23:35:16 +02:00