Fuzzing revealed bugs in the %e and %g conversions. Since these are very
similar, they are grouped together. Again, most of the bugs were related
to rounding. As an example, previously the code to check if the number
was truncated only worked for digits below the decimal point, due to it
being originally designed for %f. This patch adds a mechanism to check
the digits above the decimal point for both %e and %g.
Details
Details
- Reviewers
sivachandra lntue - Commits
- rGcd06b9d98fe2: [libc] Fix printf %e and %g bugs
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/test/src/stdio/sprintf_test.cpp | ||
---|---|---|
2563–2575 | If categories are important, you choose to leave this note but find a better category name. "Base 10 rounding tests" ? |
Comment Actions
adjust test comments
libc/test/src/stdio/sprintf_test.cpp | ||
---|---|---|
2563–2575 | These are already in the "Precision Tests" category, which is focused on testing the precision mechanism that also covers rounding. |
If categories are important, you choose to leave this note but find a better category name. "Base 10 rounding tests" ?