Cadet 1st Class
Cadet 1st Class
386 views

Fortify raises "Process is terminated due to StackOverflowException."

1- create a simple dot net framework 4.7.2 class library project with a single class (see the attached zip file)

using System;
namespace a.b.c
{
  public class Class1 
  {
    public static string x = "a" +
    "a" +
    "a" +
    "a" +
    "a";
  }
}

2- the number of  lines in the expression above is 5 now. but if you increase it to more than 2297

3- then run the command 

sourceanalyzer.exe -b 2.22.0-92541 -logfile c:\temp\ConsoleApp1\ConsoleApp1.sln_build.log devenv "c:\temp\ConsoleApp1\ConsoleApp1.sln" /REBUILD DEBUG

4- it raises the error message "Process is terminated due to StackOverflowException."

see the attached screenshot

0 Likes
3 Replies
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Hello!

Thank you for raising this!  Can you let me know what version of SCA you were using to produce this?  Also helpful would be the version of Java, and your current O/S.

Also, have you opened a support ticket for this?

Thanks!

 

0 Likes
Cadet 1st Class
Cadet 1st Class

OS: Windows Server 2012 R2

Fortify: 18.2 and 19.2 and 20.2

C:\Temp\ConsoleApp1>java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

C:\Temp\ConsoleApp1>"C:\Program Files\Fortify\Fortify_SCA_and_Apps_19.2.3\jre\bin\java" -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (Zulu 8.31.0.1-win64) (build 1.8.0_181-b02)
OpenJDK 64-Bit Server VM (Zulu 8.31.0.1-win64) (build 25.181-b02, mixed mode)

0 Likes
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Thanks for getting back to me.  I have reproduced the stack overflow error, and will file the test case with Engineering.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.