Skip to content

Fix a stack overflow in 3.1r1's 8.23 range read checks - #58

Merged
jadamcrain merged 1 commit into
mainfrom
fix-point-ranges-description
Oct 14, 2026
Merged

jadamcrain merged 1 commit into
mainfrom
fix-point-ranges-description

Conversation

@jadamcrain

Copy link
Copy Markdown
Member

The x.2 test of every point type in 3.1r1's 8.23 crashed with a StackOverflowError when it reached its range read check.

The cause: the validation took a parameter named description, which its own description member shadowed, so describing it called itself forever. The parameter is renamed.

ProcedureConfigurationTest now also builds every step's description, as -describe and the log do, so it fails on this bug.

This was found running 3.1r1 Level 3 against the dnp3 outstation.

The validation of a range read's response took a parameter named
description, which its own description member shadowed, so describing it
recursed until the stack overflowed: the x.2 test of every point type
crashed the run when it reached that step.

The procedure configuration test now builds every step's description, as
-describe and the log do, which catches this.
@jadamcrain
jadamcrain merged commit 5766d59 into main Oct 14, 2026
5 checks passed
@jadamcrain
jadamcrain deleted the fix-point-ranges-description branch October 14, 2026 17:32
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.

1 participant