-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
cataloger 'apkdb-cataloger' failed to parse entries #212
Comments
Hey 👋! Welcome to the repo and thanks for reporting, we'll review this issue soon! |
I have seen the same thing, but wanted to add that I took a brief look around and I think the issue may be that older versions of the alpine images (and any other things layered on top) may be outputting differently and producing tokens larger than what can be held in the default internal token buffer size setup by bufio. The default token size appears to be 64KB, which does seem pretty large, and the error message seems to indicate the token buffer is not large enough. I might try playing with it a bit more incase more information would be more helpful. |
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
Fixes #212 by increasing buffer size for scanner
@pdevine-cb the fix that @jhujasonw put in should make it in the next release (v0.3.0). I noticed something odd with the output you posted as well:
...it seems like the name and version is missing for one of the artifacts discovered. I created a new issue #220 to capture this. |
@wagoodman Yeah, I saw that too which is why I included it, but wasn't sure if it was related to the original issue. |
Signed-off-by: Jason Williams <jasonw@jhu.edu>
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
Fixes anchore#212 by increasing buffer size for scanner
What happened: When running syft on the
jenkins:2.60.3-alpine
image, it failed to parse everything and created an error which looks like:What you expected to happen: It to parse correctly, although this is an egregiously old version of
jenkins
using a very old version ofalpine
.How to reproduce it (as minimally and precisely as possible): Using
origin/main
,make bootstrap && make build
, then running$ syft jenkins:2.60.3-alpine -v
Anything else we need to know?: This is an older version of jenkins, but it was the last one which was published on docker hub as an official image, so it's possible someone might accidentally pull it and attempt to use it.
Environment:
syft version -v
):cat /etc/os-release
or similar):The text was updated successfully, but these errors were encountered: