mirror of
https://github.com/oven-sh/bun
synced 2026-02-18 06:41:50 +00:00
The out_key_counter in expandFlat/expandNested was u16, overflowing
when cartesian product of brace groups exceeds 65535 (e.g. {a,b}
repeated 16 times = 2^16 = 65536). Changed to u32.
Added test for the cartesian product overflow case.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>