Skip to content

Conversation

@nnethercote
Copy link
Contributor

Currently some output can be double-escaped.

They currently don't test file errors because the regex doesn't match!
When `-j` is specified, any new strings produced by `fix-stacks` need
JSON escaping. However, any strings that come from the input and are
reused will already be escaped, and so should not be re-escaped.

This commit removes some erroneous escaping of input strings. As a
result, some Windows paths no longer get their backslashes escaped
twice.
@nnethercote nnethercote merged commit 74b4f4e into mozilla:master Mar 3, 2020
@nnethercote nnethercote deleted the fix-JSON-handling branch March 3, 2020 04:40
@nnethercote
Copy link
Contributor Author

@gabrielesvelto: Like in #12, I already landed this because I needed it in a hurry for https://bugzilla.mozilla.org/show_bug.cgi?id=1604095, but I'd be interested to hear if you have any review comments. Thanks.

@nnethercote nnethercote mentioned this pull request Mar 3, 2020
gabrielesvelto pushed a commit to gabrielesvelto/fix-stacks that referenced this pull request Feb 3, 2021
* A string table isn't mandatory

* Add a test with a pdb with no string table
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

Successfully merging this pull request may close these issues.

1 participant