| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d1f6b39 commit 11d6c46
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + SBOM generation tool didn't cross-check the version and checksum values | ||
| 2 | + against the ``Modules/expat/refresh.sh`` script, leading to the values | ||
| 3 | + becoming out-of-date during routine updates. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -245,14 +245,14 @@ def check_sbom_packages(sbom_data: dict[str, typing.Any]) -> None: | |||
| 245 | 245 | ) | |
| 246 | 246 | ||
| 247 | 247 | # libexpat specifies its expected rev in a refresh script. | |
| 248 | - if package["name"] == "libexpat": | ||
| 248 | + if package["name"] == "expat": | ||
| 249 | 249 | libexpat_refresh_sh = (CPYTHON_ROOT_DIR / "Modules/expat/refresh.sh").read_text() | |
| 250 | 250 | libexpat_expected_version_match = re.search( | |
| 251 | 251 | r"expected_libexpat_version=\"([0-9]+\.[0-9]+\.[0-9]+)\"", | |
| 252 | 252 | libexpat_refresh_sh | |
| 253 | 253 | ) | |
| 254 | 254 | libexpat_expected_sha256_match = re.search( | |
| 255 | - r"expected_libexpat_sha256=\"[a-f0-9]{40}\"", | ||
| 255 | + r"expected_libexpat_sha256=\"([a-f0-9]{64})\"", | ||
| 256 | 256 | libexpat_refresh_sh | |
| 257 | 257 | ) | |
| 258 | 258 | libexpat_expected_version = libexpat_expected_version_match and libexpat_expected_version_match.group(1) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments