Bug 945568 - Properly handle OOM in ReadFile. r=terrence

--HG--
extra : rebase_source : 4734a64a1c89b43421f8dab0bda417cf7b8978c3