pdkelly/audiograph — pull request #1 by nick-prater (2014-09-12 18:35:44+00:00)
Title: Check realloc() return value and gracefully handle a failure

Audiograph reads the entire audio file into memory. Using audiograph with large audio files on a constrained system can exhaust available memory and result in a realloc failure. This patch checks the return value of realloc() so that failure is handled gracefully. Previously a segmentation fault resulted, which led to a bit of head-scratching!