You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix memory bug processing versions
* change sources env-variables
* tune up scanning limits
* fix ranges assembling bug. Improve snippets and component selection
* change on report, file content url will be returned empty if the env-var wasn't defined
Copy file name to clipboardExpand all lines: inc/scan.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ typedef struct scan_data_t
52
52
match_tmatch_type; /* match_t (file, snippet, none), this is replicated in each match in the matches list */
53
53
matchmap_entry*matchmap; /*matchmap pointer, used in snippet scanning */
54
54
uint32_tmatchmap_size; /*size of the match map */
55
-
intmatchmap_rank_by_sector[255]; /* Indirection array pointing to the max hits from the matchmap classyfied by sector.*/
55
+
intmatchmap_rank_by_sector[256]; /* Indirection array pointing to the max hits from the matchmap classyfied by sector.*/
56
56
uint8_t*match_ptr; // pointer to matching record in match_map
57
57
match_list_t*matches_list_array[MAX_MULTIPLE_COMPONENTS]; /* array of "match_list_t", each snippet with different "from line" will generate its own matches list */
58
58
intmatches_list_array_index; /* elements in the matches list array*/
/* in autolimit mode the list doesnt have a fix size, it will accept all the matchest until a 75% of the fist element (the biggest) */
313
313
//TODO: this part of the code should be in the function pointer or I need to re-evaluate the archtecture of this function */
314
-
if (list->autolimit&& !tolerance_eval(list->headp.lh_first->match->hits, list->last_element->match->hits))
314
+
if (list->autolimit&& !tolerance_eval(list->headp.lh_first->match->lines_matched, list->last_element->match->lines_matched))
315
315
{
316
316
np=list->headp.lh_first;
317
317
/*We have to find and remove the unwanted elements */
318
-
for (; np->entries.le_next!=NULL&&tolerance_eval(list->headp.lh_first->match->hits, np->entries.le_next->match->hits); np=np->entries.le_next)
318
+
for (; np->entries.le_next!=NULL&&tolerance_eval(list->headp.lh_first->match->lines_matched, np->entries.le_next->match->lines_matched); np=np->entries.le_next)
0 commit comments