GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fixes from the 2026-11 audit, part 1 by FreeAndNil · Pull Request #355 · apache/logging-log4net

Conversation

@FreeAndNil

@FreeAndNil FreeAndNil commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Fixes from the 2026-11 audit, part 1

  • one commit per issue:
    • XmlLayout searches for the CDATA end marker culture-sensitively #350 XmlLayout searches for the CDATA end marker ordinally
    • File, UDP and mail appenders turn unencodable characters into markup #351 file, UDP and mail appenders write unencodable characters as \uXXXX
    • TraceAppender and DebugAppender cut a record at a NUL character #343 TraceAppender and DebugAppender write NUL as \0
    • A lone surrogate stops a TextWriterAppender over a default StreamWriter #344 lone surrogates escaped centrally, the pattern width keeps pairs whole
    • AdoNetAppender loses an event with a NUL character or a lone surrogate #346 AdoNetAppender escapes NUL and lone surrogates and cuts to Size
    • AdoNetAppender drops the rest of a batch after five failed inserts #345 AdoNetAppender keeps the rest of a failed batch
    • TelnetAppender nests accept callbacks on one stack #347 TelnetAppender accepts each connection on a fresh stack
    • LocalSyslogAppender loses records over 212960 bytes silently #348 LocalSyslogAppender cuts records to MaxRecordSize
    • SmtpAppender loses a whole batch over the server's size limit #349 both SmtpAppenders split batches over MaxBodySize
    • Ext.Mail SmtpAppender sends a bare CR raw and the relay refuses the batch #352 the Ext.Mail body goes out quoted-printable
    • SmtpPickupDirAppender writes a bare CR raw and Sendmail defers the mail #353 SmtpPickupDirAppender writes a lone CR as \r
    • %aspnet-request reads the request body under the appender lock #354 %aspnet-request no longer reads a request body the application has not read
  • new options: LocalSyslogAppender.MaxRecordSize, SmtpAppender.MaxBodySize (core and Ext.Mail)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@FreeAndNil
FreeAndNil force-pushed the Feature/2026-11-audit-part-1 branch from d9276a8 to 7b0dd1f Compare November 9, 2026 19:55
@FreeAndNil
FreeAndNil changed the base branch from master to Feature/2.x November 9, 2026 20:08
@FreeAndNil
FreeAndNil changed the base branch from Feature/2.x to master November 9, 2026 20:09
FreeAndNil and others added 14 commits November 9, 2026 21:09
@FreeAndNil
#350 Search for the CDATA end marker ordinally in XmlLayout (ANT-2026…
80d955e
…-2PJSIJWL)

- Both IndexOf calls in Transform.WriteEscapedXmlString
@FreeAndNil
#351 Write unencodable characters as escapes in the file, UDP and mai…
735db80
…l appenders (ANT-2026-3WK17LYB)

- Escaping encoder fallback in ContentEscape, all four hand-offs
@FreeAndNil
#344 Turn ContentEscape into extension members (ANT-2026-K72QFN2N)
d1dd9e9
- Analyzers 10.0.114, 8.0.0 flags extension members with CA1822
- SmtpAppender validates messageBody for CA1062
- Tests look up ContentEscape once
@FreeAndNil
#343 Escape NUL in TraceAppender and DebugAppender (ANT-2026-WERUEPPY)
d93dc0b
- Message and category, both reach the same native call
- Tests for both Debug.Write overloads, listener records every write
- Docs on the trace appender page, API remarks, changelog
@FreeAndNil
#346 Escape and cut text values in AdoNetAppender (ANT-2026-NIG6OWNC)
a996aa8
- NUL and lone surrogates escaped before binding, Size cut keeps pairs whole
- Docs and changelog ask for a UTF-8 database, name the string types
@FreeAndNil
#345 Keep the rest of a failed AdoNetAppender batch (ANT-2026-WAJNPYNG)
2ed25ed
- Give up only while the database has not accepted an insert
- Manual documents the cap, the first-five gap and the round trip cost
- Fake provider reset in SetUp, remarks corrected
@FreeAndNil
#344 Escape lone surrogates centrally (ANT-2026-K72QFN2N)
803eeba
- Per-event writer in RenderLoggingEvent, categories of Trace, Debug and AspNetTrace
- Pattern width cut keeps surrogate pairs whole
- Trace and Debug report a failed flush, sink calls in Telnet and SmtpPickupDir removed
@FreeAndNil
#348 Share the byte cut of UdpAppender in ContentEscape (ANT-2026-G1W…
2622b46
…5JHYT)

- TruncateToBytes in small chunks, keeps characters and pairs whole
- UdpAppender docs name both default encodings
- VB.NET receiver sample removed, C# sample fixed
@FreeAndNil
#347 Accept Telnet connections on a fresh stack (ANT-2026-VW2B0UOQ)
21c3a2c
- FromAsync plus ContinueWith as before 3.0.0, deterministic nesting test
- Failed accept logged or retried after 100 ms, the delay untested on purpose
- Late accept and late client after Dispose closed
@FreeAndNil
#348 Cut LocalSyslogAppender records to MaxRecordSize (ANT-2026-G1W5J…
0bea787
…HYT)

- Default 204800 UTF-8 bytes, cut before EscapePercent, per line in Split mode
- Each cut reported through ErrorHandler
- Records computed by a private method, tested by reflection
@FreeAndNil
#349 Split mail batches over MaxBodySize into several mails (ANT-2026…
ab67b51
…-D8I8WODV)

- MailBodies shared by Ext.Mail and the legacy SmtpAppender, default 1 MiB
- Each mail sent on its own, one enqueue deadline per batch
- Oversize record cut, no-room header and footer reported at activation
@FreeAndNil
#352 Send the Ext.Mail body quoted-printable (ANT-2026-PC9VIAKD)
e36ec1a
- Base64 for UTF-16 and UTF-32, where CR and LF bytes occur inside characters
- Fake transport keeps the raw message, tests for a bare CR on every code page
- README, manual and changelog name the encoding and the wire size
@FreeAndNil
#353 Escape a lone CR in SmtpPickupDirAppender mails (ANT-2026-PC9VIAKD)
2768fe9
- ContentEscape.EscapeLoneCarriageReturns, a regex, CRLF kept
- Each event rendered to a string and escaped before it is written
- Manual names Sendmail and the CR at an event boundary
@FreeAndNil
#354 Read the form in %aspnet-request only once the body is read (ANT…
6fe906d
…-2026-SWV3M1YH)

- HttpRequestExtensions: Classic taken, Buffered tried, None and Bufferless left out
- Keyed lookup in the indexer order without an unread form
- net462 tests incl. buffered and bufferless reads, XML remark and manual note
@FreeAndNil
FreeAndNil force-pushed the Feature/2026-11-audit-part-1 branch from 7b0dd1f to 6fe906d Compare November 9, 2026 20:10
@FreeAndNil
FreeAndNil merged commit 08d3e83 into master Nov 9, 2026
3 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@FreeAndNil
FreeAndNil deleted the Feature/2026-11-audit-part-1 branch November 9, 2026 20:21
FreeAndNil added a commit that referenced this pull request Nov 9, 2026
@FreeAndNil
#355 Credit the 2026-11 audit fixes in the 3.5.1 changelog
fab0465
- PR link and ANT id in all 13 entries
- bump version to 3.6.0
FreeAndNil added a commit that referenced this pull request Nov 9, 2026
@FreeAndNil
#355 Take the expected version in the release script test from Direct…
837c9f0
…ory.Build.props
FreeAndNil added a commit that referenced this pull request Nov 9, 2026
@FreeAndNil
#355 Bump MailKit to 4.18.2 for the patched System.Security.Cryptogra…
b4184ba
…phy.Pkcs
@FreeAndNil FreeAndNil added this to the 3.6.0 milestone Nov 9, 2026
This was referenced Nov 12, 2026
Bump log4net from 2.0.15 to 3.6.0 sg-scale/NETworkManager--2022.12.20.0#5
Open
Bump Crc32.NET and 12 others SvenGroot/JumboCore#80
Closed
Bump the nuget-dependencies group with 14 updates SvenGroot/JumboCore#81
Closed
Bump log4net across 9 directories METACMETAHA/sap-wialon-fleet-audit#75
Open
Bump log4net from 3.5.0 to 3.6.0 ParadoxGameConverters/PGCG.commonItems#964
Merged
Bump log4net from 3.5.0 to 3.6.0 afernandes/ConnectionFactory.NET#12
Open
This was referenced Nov 18, 2026
Bump log4net from 3.5.0 to 3.6.0 agentthink/ua-protocol-bridge#23
Open
Bump log4net from 3.3.2 to 3.6.0 jasonlandreth/GarminR10-BLE-Connector#7
Open
Bump the minor-and-patch group with 4 updates Ed-Fi-Alliance-OSS/ODS-Admin-API#559
Merged
DEV: Bump log4net from 3.5.0 to 3.6.0 origam/origam#5265
Open
Bump the dependencies group with 22 updates guibranco/CrispyWaffle#1126
Closed
DEV: Bump log4net from 3.5.0 to 3.6.0 origam/origam#5279
Open
DEV: Bump log4net from 3.5.0 to 3.6.0 origam/origam#5280
Open
DEV: Bump log4net from 3.5.0 to 3.6.0 origam/origam#5281
Open
DEV: Bump log4net from 3.5.0 to 3.6.0 origam/origam#5282
Open
DEV: Bump log4net from 3.5.0 to 3.6.0 origam/origam#5283
Open
DEV: Bump log4net from 3.5.0 to 3.6.0 origam/origam#5284
Open
DEV: Bump log4net from 3.5.0 to 3.6.0 origam/origam#5285
Open
This was referenced Nov 20, 2026
Fixes from the 2026-11 audit, part 3: fix lock, buffered properties and the aspnet converters #365
Merged
Fixes from the 2026-11 audit, part 2: logging core, batches and mail #364
Merged
Fixes from the 2026-11 audit, part 4: FileAppender #369
Merged
Fixes from the 2026-11 audit, part 5: BackgroundSender and syslog #373
Merged
@dependabot dependabot Bot mentioned this pull request Nov 23, 2026
Bump the runtime-libraries group with 7 updates CreativeCodersTeam/Core#213
Open
@FreeAndNil FreeAndNil mentioned this pull request Nov 23, 2026
Fixes from the 2026-11 audit, part 6: syslog notes, XML layouts and Telnet #376
Merged
This was referenced Nov 24, 2026
Bump Crc32.NET and 12 others SvenGroot/JumboCore#84
Open
Bump the minor-version-updates group with 2 updates PxTools/PCAxis.Serializers#224
Open
Bump the minor-version-updates group with 2 updates PxTools/PCAxis.Menu.OracleDatamodelMenu#119
Open
Bump the minor-version-updates group with 2 updates PxTools/PCAxis.Metadata#110
Open
Bump the minor-version-updates group with 2 updates PxTools/PCAxis.Menu.MsSqlDatamodelMenu#117
Open
Bump the minor-version-updates group with 2 updates PxTools/PXWeb.SavedQuery.Oracle#122
Open
Bump the minor-version-updates group with 2 updates PxTools/PCAxis.Core#145
Open
Bump the minor-version-updates group with 13 updates statisticssweden/DataportalXML#78
Open
Bump log4net from 3.5.0 to 3.6.0 mishka1c/mRemoteNX#12
Closed
Bump the dependencies group with 17 updates guibranco/CrispyWaffle#1136
Open
Bump the minor-version-updates group with 2 updates PxTools/PCAxis.Query#119
Open
Bump the minor-version-updates group with 2 updates PxTools/PCAxis.Menu#104
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

3.6.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@FreeAndNil
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.