HMS-11029: Set decompression size limit for comps.xml and modules.yaml - #45
Conversation
|
I didn't add the same error handling to the existing |
i think that's a good idea :) aligning behavior across all the parsing paths would maintain consistency and provide clearer errors there too |
975d17e to
9f2c96f
Compare
Made the changes 🫡 😄 |
xbhouse
left a comment
There was a problem hiding this comment.
awesome job! this looks great :)
Summary
Currently there is no decompression limit for comps.xml and modules.yaml when these files are decompressed during repository introspection. To fix this security vulnerability the PR sets in place a file decompression limit that is the same limit as what is already used for parsing compressed xml data (1.5 GB).
Testing 🧪 🔬
Point content-sources-backend to your local yummy package: 👉
Test happy path:😄
Test the sad path:😢