-
Notifications
You must be signed in to change notification settings - Fork 41
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
Don't interpolate provider description fields #1836
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1836 +/- ##
==========================================
+ Coverage 60.75% 61.99% +1.23%
==========================================
Files 303 309 +6
Lines 42375 35571 -6804
==========================================
- Hits 25747 22051 -3696
+ Misses 15154 12046 -3108
Partials 1474 1474 ☔ View full report in Codecov by Sentry. |
028b489
to
473ad93
Compare
This prevents #1776 from repeating.
473ad93
to
d7e1645
Compare
This is a correctness correction, since untrusted (from the user) inputs may contain interpolation keys (`%s`, `%#v`, etc) and thus cause `MISSING` to be inserted into the output. Fixes #1776
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving to unblock.
It'd be clearer if you separated out the refactoring changes from your meaningful changes.
I don't understand which part is the actual fix since most of the changes look like you are propagating errors?
Have you verified that the existing tests catch the error and we won't regress here?
This LGTM but I would've like to see a test showing the (MISSING) behavior. to answer the reviewer question: wrapping the input into |
fprintf(output, docs[tfBlock.headerStart:tfBlock.start]) | ||
fprintf("%s", docs[tfBlock.headerStart:tfBlock.start]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably the actual fix.
I did a
Yes. That d7e1645 fails CI (check) shows the area is under test. |
Fixes #1776
make -C pf build.testprovider
.