-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[setup_payload] Fixed bug with not reducing span size properly #18598
Conversation
Output buffer span is not reduced properly, as subspan is passed to the base38Encode method and changed size doesn't propagate to the outBuffer. Added reducing outBuffer size to the subSpan + prefixLen size.
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.
Consider adding a unit test. It seems TestQRCode
contains some tests for the STL-based parser, but nothing for the basic parser. It should be quite easy to copy one to ensure returned span contains exactly what should be returned.
PR #18598: Size comparison from 70e259c to fb84920 Increases (19 builds for cyw30739, efr32, esp32, k32w, linux, nrfconnect, p6, telink)
Full report (21 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
Problem
Output buffer span is not reduced properly, as
subSpan
is passed to thebase38Encode
method and changed size doesn'tpropagate to the
outBuffer
.Change overview
Added reducing
outBuffer
size to thesubSpan
size +prefixLen
size.Testing