diff options
author | Jan Engelhardt <[email protected]> | 2024-05-21 13:47:05 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-21 13:47:05 +0000 |
commit | b447adbe373d3940d2023d8e7a6ec21c7bfb8a48 (patch) | |
tree | 5c8092e7215d83400ec5ad3a377f3da9db7678c0 /tests/parser/mailboxTest.cpp | |
parent | vmime: avoid changing SEVEN_BIT when encoding::decideImpl sees U+007F (#303) (diff) | |
download | vmime-b447adbe373d3940d2023d8e7a6ec21c7bfb8a48.tar.gz vmime-b447adbe373d3940d2023d8e7a6ec21c7bfb8a48.zip |
Fixes/comments for guessBestEncoding (#304)
* tests: add case for getRecommendedEncoding
* vmime: avoid integer multiply wraparound in wordEncoder::guessBestEncoding
If the input string is 42949673 characters long or larger, there will
be integer overflow on 32-bit platforms when multiplying by 100.
Switch that one computation to floating point.
* vmime: update comment in wordEncoder::guessBestEncoding
Diffstat (limited to 'tests/parser/mailboxTest.cpp')
0 files changed, 0 insertions, 0 deletions