Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a Potential Stack Overflow Error in findProductRef (#1146)
* * Fixed the potential stack overflow error for the function `findProductRef` in `pkg/ingestor/parser/csaf/parser_csaf.go` * Included unit tests for `findProductRef` * Used a visted map to solve the stack overflow, and didn't use Dynamic Programing because there was no need to go over the nodes again Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com> * Fixed fmt error Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com> * Removed flag for stack overflow Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com> --------- Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com>
- Loading branch information
1 parent
30e2a71
commit be3da8d
Showing
2 changed files
with
103 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters