mirror of
https://github.com/morluto/rea.git
synced 2026-12-03 05:07:49 +00:00
fix(errors): let typed limit refusals state recovery from the measured requirement (#15447)
Several limit refusals wrote their own "raise X up to MAX" text, which replaced the shared adjustable-budget recovery and advised a value that cannot admit the input when the measured requirement is above the control's maximum. Following #15407 (VSIX and pyc), these producers now report a typed limit with the measured requirement and no prose: - NuGet parse budgets, as VSIX already does. - The selected-file size budget of NuGet, VSIX, Maven/Gradle metadata, ESP NVS, release exposure and NTFS journal reads. The reader's observed file size becomes required_value through the new selectedFileRequirement helper. - IL2CPP's native pointer index budget. inspect_packet_capture's DNS limitation no longer says to raise dns_identity_limit's control when it is already at its maximum or the requirement is above it. The unused imageFileSizeRemediation is removed. Refs #15325
This commit is contained in:
1 parent
5a0ab31812
commit
3070116222
12 files changed
+123
-72
No files matched your search
@@ -121,11 +121,14 @@ const failureForPrimary = (
|
||||
isParseLimit(cause, IL2CPP_BINARY_FORMAT) &&
|
||||
cause.failure.limit.name === ELF_VIRTUAL_POINTER_INDEX_LIMIT
|
||||
) {
|
||||
const selected = cause.failure.limit.maximum;
|
||||
const { maximum: selected, required } = cause.failure.limit;
|
||||
// The typed limit lets the shared refusal owner state the recovery.
|
||||
return parseLimitConstraint(OPERATION, "memory", cause, {
|
||||
retryable: false,
|
||||
limit: il2cppNativeIndexLimit(selected),
|
||||
remediationAction: `The ELF pointer index allowance is max_native_index_bytes = ${String(selected)} bytes. Pass a larger max_native_index_bytes (up to ${String(Number.MAX_SAFE_INTEGER)}) on the next ${OPERATION} call with the same binary_path; no restart is required. Host memory and the binary file allowance are independent. Repeating the unchanged request fails the same way.`,
|
||||
limit: {
|
||||
...il2cppNativeIndexLimit(selected),
|
||||
...(typeof required === "number" ? { required_value: required } : {}),
|
||||
},
|
||||
});
|
||||
}
|
||||
if (
|
||||
|
||||
Reference in new issue
Block a user