fosslight-binary 4.1.30__tar.gz → 4.1.31__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/PKG-INFO +1 -1
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/setup.py +1 -1
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary/_binary_dao.py +5 -1
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary/_jar_analysis.py +5 -2
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary.egg-info/PKG-INFO +1 -1
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/LICENSE +0 -0
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/LICENSES/Apache-2.0.txt +0 -0
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/LICENSES/LicenseRef-3rd_party_licenses.txt +0 -0
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/MANIFEST.in +0 -0
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/README.md +0 -0
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/requirements.txt +0 -0
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/setup.cfg +0 -0
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary/__init__.py +0 -0
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary/_binary.py +0 -0
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary/_help.py +0 -0
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary/binary_analysis.py +0 -0
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary/cli.py +0 -0
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary.egg-info/SOURCES.txt +0 -0
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary.egg-info/dependency_links.txt +0 -0
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary.egg-info/entry_points.txt +0 -0
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary.egg-info/requires.txt +0 -0
- {fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary.egg-info/top_level.txt +0 -0
|
@@ -35,8 +35,11 @@ def get_oss_info_from_db(bin_info_list, dburl=""):
|
|
|
35
35
|
bin_file_name, checksum_value, tlsh_value)
|
|
36
36
|
if df_result is not None and len(df_result) > 0:
|
|
37
37
|
_cnt_auto_identified += 1
|
|
38
|
+
# Initialize the saved contents at .jar analyzing only once
|
|
39
|
+
if not item.found_in_owasp and item.oss_items:
|
|
40
|
+
item.oss_items = []
|
|
41
|
+
|
|
38
42
|
for idx, row in df_result.iterrows():
|
|
39
|
-
# If binary is not found in OWASP, append OSS info.
|
|
40
43
|
if not item.found_in_owasp:
|
|
41
44
|
oss_from_db = OssItem(row['ossname'], row['ossversion'], row['license'])
|
|
42
45
|
bin_oss_items.append(oss_from_db)
|
|
@@ -44,6 +47,7 @@ def get_oss_info_from_db(bin_info_list, dburl=""):
|
|
|
44
47
|
|
|
45
48
|
if bin_oss_items:
|
|
46
49
|
item.set_oss_items(bin_oss_items)
|
|
50
|
+
|
|
47
51
|
disconnect_lge_bin_db()
|
|
48
52
|
return bin_info_list, _cnt_auto_identified
|
|
49
53
|
|
|
@@ -64,10 +64,13 @@ def merge_binary_list(owasp_items, vulnerability_items, bin_list):
|
|
|
64
64
|
found = False
|
|
65
65
|
for bin in bin_list:
|
|
66
66
|
if bin.binary_strip_root == key:
|
|
67
|
-
|
|
67
|
+
for oss in value:
|
|
68
|
+
if oss.name and oss.license:
|
|
69
|
+
bin.found_in_owasp = True
|
|
70
|
+
break
|
|
71
|
+
bin.set_oss_items(value)
|
|
68
72
|
if vulnerability_items is not None:
|
|
69
73
|
bin.set_vulnerability_items(vulnerability_items.get(key))
|
|
70
|
-
bin.found_in_owasp = True
|
|
71
74
|
found = True
|
|
72
75
|
break
|
|
73
76
|
|
|
File without changes
|
|
File without changes
|
{fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/LICENSES/LicenseRef-3rd_party_licenses.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary.egg-info/requires.txt
RENAMED
|
File without changes
|
{fosslight_binary-4.1.30 → fosslight_binary-4.1.31}/src/fosslight_binary.egg-info/top_level.txt
RENAMED
|
File without changes
|