From 17c94c09a08af84088a88a14d65ecbc655c6d788 Mon Sep 17 00:00:00 2001 From: mscasso-scanoss Date: Mon, 19 Jan 2026 16:39:38 +0100 Subject: [PATCH] fix bug with matchmap size during sbom ingestion. Change default raking enabled config --- inc/scanoss.h | 2 +- src/main.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/inc/scanoss.h b/inc/scanoss.h index 8c4bbc4..64dc948 100644 --- a/inc/scanoss.h +++ b/inc/scanoss.h @@ -33,7 +33,7 @@ #define WFP_LN 4 #define WFP_REC_LN 18 -#define SCANOSS_VERSION "5.4.20" +#define SCANOSS_VERSION "5.4.21" /* Log files */ #define SCAN_LOG "/tmp/scanoss_scan.log" diff --git a/src/main.c b/src/main.c index 58af1ac..b732d42 100644 --- a/src/main.c +++ b/src/main.c @@ -68,7 +68,7 @@ int scan_min_match_lines = SNIPPETS_DEFAULT_MIN_MATCH_LINES; // Minimum number o int scan_min_match_hits = SNIPPETS_DEFAULT_MIN_MATCH_HITS; // Minimum number of snippet ID hits to produce a snippet match int scan_range_tolerance = SNIPPETS_DEFAULT_RANGE_TOLERANCE; // Maximum number of non-matched lines tolerated inside a matching range bool scan_adjust_tolerance = SNIPPETS_DEFAULT_ADJUST_TOLERANCE; /** Adjust tolerance based on file size */ -int scan_ranking_threshold = 0; //enabled, all accepted by default +int scan_ranking_threshold = -1; //disable by defaults bool scan_honor_file_extension = SNIPPETS_DEFAULT_HONOR_FILE_EXTENSION; bool lib_encoder_present = false; @@ -351,8 +351,7 @@ int main(int argc, char **argv) case 's': if (declared_components) printf("Cannot combine -s and -a\n"); declared_components = get_components(optarg); - engine_flags|= ENABLE_HIGH_ACCURACY; //high accuracy is necessary in this mode - break; + break; case 'b': ignore_components = get_components(optarg); @@ -437,7 +436,6 @@ int main(int argc, char **argv) break; case 'd': - engine_flags = engine_flags_cmd_line; debug_on = true; scanlog_init(); break;