Repository navigation
Commit 43f2358
authored
fix(parser): drop the Conan user/channel from conan.lock versions (#6139)
* fix(parser): drop the Conan user/channel from conan.lock versions
A Conan reference is name/version@user/channel#revision%timestamp, and
the @user/channel part is common for packages from private remotes. The
conan.lock parser only cut the reference at "#", so the version of
"zlib/1.2.12@mycompany/stable#..." was read as "1.2.12@mycompany". That
version never matches an exact version in the CVE database and compares
as greater than 1.2.12, so CVEs that affect up to 1.2.12 (such as
CVE-2022-37434) were missed.
Cut each reference at the revision and the user/channel once, then
split it into product and version. The requires and build_requires
loops now do the same, as suggested in review.
Signed-off-by: Darshanpawar7 <170450039+Darshanpawar7@users.noreply.github.com>1 parent bc5979f commit 43f2358
2 files changed
Lines changed: 20 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | | - | |
53 | | - | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | | - | |
69 | | - | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
113 | 127 | | |
114 | 128 | | |
115 | 129 | | |
| |||
0 commit comments