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
The issue is that /usr/lib/x86_64-linux-gnu/libcurl.so.4 file is missing from the Syft output. I haven't looked at the code but I guess the issue is in the logic that combines file paths to remove incomplete paths like /usr, /usr/lib, /usr/lib/x86_64-linux-gnu. The logic somehow treats /usr/lib/x86_64-linux-gnu/libcurl.so.4 as a prefix of /usr/lib/x86_64-linux-gnu/libcurl.so.4.8.0 hence removing the former from the provided files.
What you expected to happen:
Include /usr/lib/x86_64-linux-gnu/libcurl.so.4 in the provided files output.
Steps to reproduce the issue:
Use this Dockerfile:
FROM debian:stable-slim
RUN apt update
RUN apt install -y libcurl4
CMD ["cat", "/var/lib/dpkg/info/libcurl4:amd64.list"]
Anything else we need to know?:
Environment:
Output of syft version: 1.17.0
OS (e.g: cat /etc/os-release or similar): container image is Debian GNU/Linux 12 (bookworm), host (where Syft runs) is Ubuntu 22.04.3 LTS
The text was updated successfully, but these errors were encountered:
What happened:
Syft missed a file provided by
libcurl4
package in a Debian-based image. Below is the list of files provided by thelibcurl4
package:Below is the Syft output showing the provided files by
libcurl4
:The issue is that
/usr/lib/x86_64-linux-gnu/libcurl.so.4
file is missing from the Syft output. I haven't looked at the code but I guess the issue is in the logic that combines file paths to remove incomplete paths like/usr
,/usr/lib
,/usr/lib/x86_64-linux-gnu
. The logic somehow treats/usr/lib/x86_64-linux-gnu/libcurl.so.4
as a prefix of/usr/lib/x86_64-linux-gnu/libcurl.so.4.8.0
hence removing the former from the provided files.What you expected to happen:
Include
/usr/lib/x86_64-linux-gnu/libcurl.so.4
in the provided files output.Steps to reproduce the issue:
Use this Dockerfile:
Anything else we need to know?:
Environment:
syft version
: 1.17.0cat /etc/os-release
or similar): container image is Debian GNU/Linux 12 (bookworm), host (where Syft runs) is Ubuntu 22.04.3 LTSThe text was updated successfully, but these errors were encountered: