Skip to content

JS: truncate js/unknown-directive message content#375

Merged
semmle-qlci merged 3 commits into
masterfrom
unknown repository
Oct 29, 2018
Merged

JS: truncate js/unknown-directive message content#375
semmle-qlci merged 3 commits into
masterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Oct 26, 2018

Some .js "data" files contain a single JavaScript string, this leads to very long alert messages for the js/unknown-directive query. This PR limits the message size, I think that is better than whitelisting heuristically.

I think we can skip the change notes.

I also added Util::truncate while at it.

@ghost ghost added the JS label Oct 26, 2018
@ghost ghost self-requested a review as a code owner October 26, 2018 13:29
@semmle-qlci semmle-qlci merged commit 72012a9 into github:master Oct 29, 2018
aibaars added a commit that referenced this pull request Oct 21, 2021
smowton pushed a commit to smowton/codeql that referenced this pull request Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants