News for hackers. Stuff that matters.
Re:How we got read access on Google’s production servers by ajuc on Friday April 11, 2014 @07:01AM (#7572184)
> They shouldn't do this by default: they should instead take a programmer-supplied entity resolver and call into that.

Then the programmers would write their own resolvers with even more bugs most probably. You would have 10 000 broken implementations of that code, half of them copied from stackoverflow example with security left as exercise for reader.

Re:How we got read access on Google’s production servers by rwmj on Friday April 11, 2014 @07:12AM (#7572213)
You could have a default implementation that callers have to set, eg:

    xmlSetFileResolver (xml, xmlDefaultFileResolver);
Callers could provide their own, but most will use none or use the supplied default.

Of course nothing helps for people who code by copying and pasting, rather than understanding what the API or library does.