mozilla/pdf.js — pull request #4933 by nnethercote (2014-06-13 06:28:41+00:00)
Title: Fix mishandling of incomplete, inverted masks.

This fixes #4926. Sometimes image masks have less data than the height*width requires. createMask() was handling this correctly on normal masks, but when the mask was inverted it did the wrong thing.