Skip to content

[AUD-025] [INFO] conform wrapper functions lack @param str #95

Description

@thedavidmeister

Whole-repo audit 2026-08-24 at commit 3e76bab (audit skill 0.35.0). Pass 2 status: ledgered (audit/mutation-test-scans.json, scan of 2026-08-24T08:55:39Z at 35496d8).

src/lib/mut/LibConformString.sol:90-109

The four wrapper functions conformStringToAscii, conformStringToHexDigits, conformValidPrintableStringContent, conformStringToWhitespace each have a one-line description but no @param str, and none states locally that the string is mutated in place — the caller must chase conformStringToMask to learn the argument is modified, the single most surprising property of these functions.

Proposed fix

Add to each of the four wrappers in src/lib/mut/LibConformString.sol:

    /// @param str The string to conform. This string is mutated in place.

Metadata

Metadata

Labels

auditAudit findinginfoAudit findingpass3Audit finding

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions