Skip to content

An StackOverflowError occurs when I execute the ResultConverter.convert2Xml method in hyavijava v6.0.07.1 #12

New issue

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

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

Already on GitHub? Sign in to your account

Open
PoppingSnack opened this issue Dec 14, 2023 · 0 comments

Comments

@PoppingSnack
Copy link
Owner

Description

An StackOverflowError occurs when I execute the ResultConverter.convert2Xml method in hyavijava v6.0.07.1.

Error Log

java.lang.StackOverflowError
	at java.base/java.lang.StringUTF16.checkBoundsOffCount(StringUTF16.java:1482)
	at java.base/java.lang.StringUTF16.inflate(StringUTF16.java:1308)
	at java.base/java.lang.StringLatin1.inflate(StringLatin1.java:734)
	at java.base/java.lang.AbstractStringBuilder.inflate(AbstractStringBuilder.java:229)
	at java.base/java.lang.AbstractStringBuilder.putStringAt(AbstractStringBuilder.java:1665)
	at java.base/java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:539)
	at java.base/java.lang.StringBuilder.append(StringBuilder.java:179)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:82)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)
	at com.vmware.vim.rest.ResultConverter.convertTdValue(ResultConverter.java:105)
	at com.vmware.vim.rest.ResultConverter.convertTable(ResultConverter.java:84)

PoC

        <dependency>
            <groupId>com.github</groupId>
            <artifactId>hyavijava</artifactId>
            <version>6.0.07.1</version>
        </dependency>
import org.junit.Test;
import com.vmware.vim.rest.*;
public class ResultConverterFuzzerConvert2Xml {
    @Test
    public void convert2XmlFuzzerTest() {
        try {
            String result = ResultConverter.convert2Xml("\u0015'\u0015\u0015\u0015\u0015<<tr>\u0015<tr><'\u0015td></ta\u0015'\u0015\u0015td>$</tab</ta\u0015'\u0015\u0015\u0015\u0015<<trbl>ler>\u0015\u0015\uF577\uFFD5<tr><'\u0015$</tabler>\u0015\u0015\uF577\u0015\u0015\u0015<<tr>\u0015<t</td></t\u0015a\u0015'\u0015\u0015\u0015\u0015<<trbl>\u0015<tr><'\u0015$<</tabler>\u0015\u0015\uF555\u0015<<t");
        } catch (Exception e) {
        }
    }
}
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

No branches or pull requests

1 participant