github/linguist — pull request #247 by scottjg (2012-09-01 05:49:45+00:00)
Title: When testing if a blob is indexable, check size first

Otherwise, charlock_holmes will allocate another large binary
buffer for testing the encoding, which is a problem if the binary
blob is many hundreds of MB large. It'll just fail and crash ruby.

@watsonian and I were investigating a GitHub enterprise customer that was affected by this today.