-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ParseMavenLock hangs when parsing some Maven archetypes files #293
Comments
Looks like it's because these are technically invalid XML - not sure why it doesn't just crash though; might require implementing a custom parser to properly support 🤔 |
Do you know if this is a problem with My profiler seemed to end up in a loop with the latter |
Yup doesn't surprise me that the problem is there |
Knowing that it's invalid XML helped narrow it down. osv-scanner/pkg/lockfile/parse-maven-lock.go Lines 75 to 81 in 96a62e9
Let me know if you'd prefer to handle it, or I can send a PR. |
I've got about half a day of work left before I can look into this more deeply, so if you're ready to do a PR right now go for it |
Resolves #293 Signed-off-by: Spencer Schrock <[email protected]>
…le#294) Resolves google#293 Signed-off-by: Spencer Schrock <[email protected]>
…le#294) Resolves google#293 Signed-off-by: Spencer Schrock <[email protected]>
Both of these small
pom.xml
files seem to causeosv-scanner
to hang. One invocation ran for 5+ hours before the program was terminated for other reasons.Reproducible with:
https://github.com/Open-Wide/owsi-nuxeo-boilerplate/blob/96a65826d8f610d17b269d0da1d577bbb5d46cb1/archetype/src/main/resources/archetype-resources/pom.xml
https://github.com/BeOne-PL/promena/blob/adbc25d2cd3acf1990f7188938fee25d834aa0db/sdk/promena-transformer/promena-transformer-archetype/src/main/resources/archetype-resources/configuration/pom.xml
The text was updated successfully, but these errors were encountered: