mirror of
https://github.com/morluto/rea.git
synced 2026-12-05 22:41:36 +00:00
fix(rizin): bound the version banner as printed before trimming it
The probe trimmed the first line before applying its 2,048-byte budget, so a line with more than 2,048 bytes of leading whitespace before a valid banner lost that prefix unrecorded and was identified, with provider_version_banner_truncated false, although the documented budget covers the banner line. The budget and the recorded banner now cover the line as printed; only identification reads a trimmed copy.
This commit is contained in:
1 parent
1a9af35de7
commit
7ce99121bb
3 files changed
+35
-4
No files matched your search
@@ -98,7 +98,9 @@ records the tool and version as the provider name and version, and records the
|
||||
executable path, its SHA-256 and the banner in its parameters; a banner longer
|
||||
than 2,048 UTF-8 bytes is cut within that budget, between characters, and
|
||||
marked by `provider_version_banner_truncated`; a cut banner identifies no tool,
|
||||
since the cut could fall inside its version. These describe the file at that path when
|
||||
since the cut could fall inside its version. The budget and the recorded banner
|
||||
cover the line as printed, surrounding whitespace included; only identification
|
||||
ignores that whitespace. These describe the file at that path when
|
||||
REA checked it; they cannot prove the exact bytes executed if the file changes
|
||||
before the launch. A different tool that accepts the same arguments, such as
|
||||
radare2, still runs: its Evidence names that tool and adds a limitation. A probe
|
||||
|
||||
Reference in new issue
Block a user