Skip to content

Fix WWW::Mediawiki::Client sprintf and CR handling - #1691

Merged
fglock merged 1 commit into
masterfrom
fix/www-mediawiki-client-sprintf-overflow
Oct 8, 2026
Merged

fglock merged 1 commit into
masterfrom
fix/www-mediawiki-client-sprintf-overflow

Conversation

@fglock

@fglock fglock commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Raise the safe sprintf field width limit to 1,000,000 while keeping numeric precision capped at 8192.
  • Preserve bare carriage returns in Perl source and tokenize them as line terminators so quote-like strings and regex patterns retain the original byte.
  • Add regression coverage for static and dynamic wide fields and literal CR substitution.

Fixes #1692.

Validation

  • nice -n 19 make passed.
  • nice -n 19 make check-links passed.
  • New regression tests pass on system Perl, JVM, and interpreter.
  • jcpan -t WWW::Mediawiki::Client: distribution test summary is 118/118 passing; t/server.t is skipped because no local MediaWiki server is configured. The command then exited 8 during dependency follow-up.
  • Full Perl core UAT: 574/575 files passed; 681470 checks passed, 1 failed assertion, no timeouts or incomplete files. The supplied comparison reports the same one-check delta in re/anyof.t (baseline 1187/1187, current 1186/1187). The branch base commit cf9eb1681 reproduces the same NANYOFM[:] diagnostic for (?i:[^:]), and the Joni debug description test at that base expects this output, so the mismatch predates this PR.

Support larger safe sprintf widths and retain bare carriage returns in
quote-like source constructs. Add regressions for both behaviors.

Generated with [Codex](https://openai.com/codex)

Co-Authored-By: Codex <codex@openai.com>
@fglock
fglock marked this pull request as ready for review October 7, 2026 22:25
@fglock
fglock merged commit c90c8f8 into master Oct 8, 2026
2 checks passed
@fglock
fglock deleted the fix/www-mediawiki-client-sprintf-overflow branch October 8, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix wide sprintf fields and bare CR handling in Perl source

1 participant