From 5d76a0b2f835cc1850f26b13e46de2c210c6cdbb Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Mon, 3 Nov 2025 23:02:22 -0800 Subject: [PATCH] Revert incorrect remaining_in_buffer check --- src/install/lockfile/bun.lockb.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install/lockfile/bun.lockb.zig b/src/install/lockfile/bun.lockb.zig index 58bfedc813..d05ac9e574 100644 --- a/src/install/lockfile/bun.lockb.zig +++ b/src/install/lockfile/bun.lockb.zig @@ -564,7 +564,7 @@ pub fn load( { const remaining_in_buffer = total_buffer_size -| stream.pos; - if (remaining_in_buffer > 16 and total_buffer_size <= stream.buffer.len) { + if (remaining_in_buffer > 8 and total_buffer_size <= stream.buffer.len) { const next_num = try reader.readInt(u64, .little); if (next_num == has_config_version_tag) { const config_version = bun.ConfigVersion.fromInt(try reader.readInt(u64, .little)) orelse {