Bug 1008834: Avoid OOM by refusing to open JPEG images if the file size is too large.
Merge pull request #19254 from davidflanagan/bug1008834

Bug1008834: Avoid OOM by refusing to open JPEG images if the file size is too large r=russn