Adds guard against absurd memory allocations.

Guards against too-large allocations of memory due to errors in ID3
frame headers.