Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

may remove this assert #424

Open
areuu opened this issue Mar 11, 2024 · 0 comments
Open

may remove this assert #424

areuu opened this issue Mar 11, 2024 · 0 comments

Comments

@areuu
Copy link

areuu commented Mar 11, 2024

    /// Emit one line of code.
    mutating func emit<S: StringProtocol>(_ line: S) {
        assert(!line.contains("\n"))       // <--------- 
        currentLineNumber += 1
        if includeLineNumbers { code += "\(String(format: "%3i", currentLineNumber)). " }
        code += currentIndention + line + "\n"
    }

sometimes, TemplateLiteral expression may contains multiples line, that assert seems not to must.

https://github.com/googleprojectzero/fuzzilli/blob/main/Sources/Fuzzilli/Lifting/ScriptWriter.swift#L44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant