From 485db515f7772178637cd630ca3ac2facd8e7f38 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 23 Feb 2026 15:12:19 +0900 Subject: [PATCH] internal/pkg/ir: raise string limit to 16 MiB A string holds "current" hakurei source code. For now the compressed tarball is 4.9 MiB long. Signed-off-by: Ophestra --- internal/pkg/ir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/ir.go b/internal/pkg/ir.go index 73315a8..21ba8ed 100644 --- a/internal/pkg/ir.go +++ b/internal/pkg/ir.go @@ -150,7 +150,7 @@ func (i *IContext) WriteUint32(v uint32) { } // irMaxStringLength is the maximum acceptable wire size of [IRKindString]. -const irMaxStringLength = 1 << 20 +const irMaxStringLength = 1 << 24 // IRStringError is a string value too big to encode in IR. type IRStringError string