Skip to content

StackOverflowError during Processing #422

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
KaiSuchomel opened this issue Sep 30, 2022 · 1 comment · May be fixed by #771 or #475
Open

StackOverflowError during Processing #422

KaiSuchomel opened this issue Sep 30, 2022 · 1 comment · May be fixed by #771 or #475
Milestone

Comments

@KaiSuchomel
Copy link

KaiSuchomel commented Sep 30, 2022

Hey,
with the attached openapi_prev_reduced.yam it is possible to force a StackOverflowError!!

Exception in thread "main" java.lang.StackOverflowError
	at java.base/java.util.Arrays.spliterator(Arrays.java:5296)
	at java.base/java.util.Arrays.stream(Arrays.java:5447)
	at java.base/java.util.Arrays.stream(Arrays.java:5428)
	at java.base/java.util.stream.Stream.of(Stream.java:1426)
	at org.openapitools.openapidiff.core.model.ChangedExtensions.getChangedElements(ChangedExtensions.java:27)
	at org.openapitools.openapidiff.core.model.ComposedChanged.isChanged(ComposedChanged.java:19)
	at org.openapitools.openapidiff.core.model.Changed.isUnchanged(Changed.java:21)
	at org.openapitools.openapidiff.core.utils.ChangedUtils.isUnchanged(ChangedUtils.java:11)
	at org.openapitools.openapidiff.core.utils.ChangedUtils.isChanged(ChangedUtils.java:19)
	at org.openapitools.openapidiff.core.compare.ExtensionsDiff.diff(ExtensionsDiff.java:78)
	at org.openapitools.openapidiff.core.compare.schemadiffresult.SchemaDiffResult.diff(SchemaDiff

openapi_prev_reduced.yaml.zip

Command used:

java -jar cli/target/openapi-diff-cli-2.1.0-SNAPSHOT-all.jar openapi_prev_reduced.yaml openapi_prev_reduced.yaml
@joschi joschi added the bug label Sep 30, 2022
@joschi joschi added this to the 2.1.0 milestone Sep 30, 2022
joschi added a commit that referenced this issue Feb 28, 2023
@joschi joschi linked a pull request Feb 28, 2023 that will close this issue
@joschi joschi linked a pull request Feb 28, 2023 that will close this issue
@EfimenkoAndrew
Copy link

same issue. Please address it if possible

@DrSatyr DrSatyr added help wanted and removed bug labels Jan 30, 2025
maksim-kosolapov pushed a commit to maksim-kosolapov/openapi-diff that referenced this issue Apr 20, 2025
@maksim-kosolapov maksim-kosolapov linked a pull request Apr 20, 2025 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants