Check for very large chunk sizes in WAV decoding
authorPete Warden <petewarden@google.com>
Thu, 15 Mar 2018 21:45:34 +0000 (14:45 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 15 Mar 2018 21:55:27 +0000 (14:55 -0700)
commitf9dc34df6d56d2bcb67b563ade81a3f12bbcacd2
tree013631c72fe557a9e7aeb360399a9f62a78ce905
parenta325b0ae208b3295dca574f93c214f7c924cea11
Check for very large chunk sizes in WAV decoding
Change how chunk sizes larger than 2GB are handled, since they're stored as
unsigned int32s, so there are lots of ways for conversions to confuse the
decoding logic. The new behavior is to fail with an error, since such
large WAV files are not common, and are unsupported by many readers.

PiperOrigin-RevId: 189248857
tensorflow/core/lib/wav/wav_io.cc
tensorflow/core/lib/wav/wav_io.h
tensorflow/core/lib/wav/wav_io_test.cc