Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The debt has been absorbed and I don't deny that, but it has at least been absorbed in a way that makes paying it locally easier.

Given that the description of the problem includes generally not being affected by its issue I read that to be the rather common case in which one is just using a relatively small fraction of the library. To be concrete, let's say it's an image library, and it turns out there's a PNG parsing vulnerability, but your code only ever uses it for GIFs. If you vendor it you also have the opportunity to go in and just yank PNG, JPEG, TIFF, etc. support, and depending on the situation, plugin support (maybe you can trivially tweak your code to go directly to the JPEG support without passing through anything else).

I'm not saying this is a perfect solution with no downsides, but it's not all downside either.

Of course, you need the aforementioned solid test coverage. Without that you're just flying blind. That's another thing about the debt metaphor... it can compound, but unlike most monetary debt, code debt can compound on you unexpectedly.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: