Some wav files have metadata after the audio samples. The riff wav header specifies the number of samples to expect, sphinx_fe.c reads that value (RIFFHeader.datalength) but then ignores it. This bug is likely also present elsewhere. I'm working on finding all occurrences and making a patch.
This is probably not very urgent, since most SR wavs probably don't have metadata.