Page MenuHomeFreeBSD

stdio: Fix bug in integer-parsing FSM
ClosedPublic

Authored by des on Aug 8 2025, 6:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 9, 11:54 PM
Unknown Object (File)
Thu, Oct 9, 11:54 PM
Unknown Object (File)
Thu, Oct 9, 11:54 PM
Unknown Object (File)
Thu, Oct 9, 7:59 PM
Unknown Object (File)
Thu, Oct 9, 5:21 PM
Unknown Object (File)
Thu, Oct 9, 5:17 PM
Unknown Object (File)
Fri, Oct 3, 6:25 PM
Unknown Object (File)
Thu, Oct 2, 12:13 AM
Subscribers

Details

Summary

If we encounter a zero in the havezero state, we should assume octal,
just like we would if we encountered any other digit below 8.

MFC after: 1 week
PR: 288440
Fixes: d9dc1603d6e4

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Aug 8 2025, 6:33 PM

Code reviewed -> implementation makes sense to me.
Practice -> patched 14.3-RELEASE-p1's source tree with this patch, tested my demo program from PR 284400 -> bug fixed.

Thank you!

This revision is now accepted and ready to land.Aug 8 2025, 10:03 PM
This revision was automatically updated to reflect the committed changes.