Overview
| Artifact ID: | 5a3e04aa8917eccae4265780a622ae966eb5d0ad9156c600fa3115110c3723bc |
|---|---|
| Ticket: | fb368527aeed240f2b345be96119ea66e1fce6fb
String truncation in encoding > 2GB length |
| User & Date: | apnadkarni on 2023-02-26 15:51:39 |
Changes
- icomment:
I was afraid of the GitHub actions failing. Any suggestions for the constraint to put on the tests? I think they are important enough to run for every official release at least. I'll await your response to above before merging into trunk. Regarding your review remark, the move of srcLen update was very much intentional, not because of logic (I realize it's not necessary and adds to the diff) but for stylistic reasons. Every loop has some implicit invariants that make it easier to reason about them. One of the invariants for that loop should be that src+srcLen points to end of source data. As such, they should be kept in sync - incrementing one should decrement the other - in as close proximity as possible in the code. Not doing so is potential for future errors. In the original code there was too much needless separation for really marginal gain in efficiency. Still, it's a preference issue so I'll go with your change. /Ashok
- login: "apnadkarni"
- mimetype: "text/plain"