forked from security/hakurei
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 <cat@gensokyo.uk>
This commit is contained in:
@@ -150,7 +150,7 @@ func (i *IContext) WriteUint32(v uint32) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// irMaxStringLength is the maximum acceptable wire size of [IRKindString].
|
// 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.
|
// IRStringError is a string value too big to encode in IR.
|
||||||
type IRStringError string
|
type IRStringError string
|
||||||
|
|||||||
Reference in New Issue
Block a user