9ae3d92179
This fixes an OverflowError in the read_palette function. (cherry picked from commit 4ebcca865cbda4b08dc917581438473f625e2a12)