I have written a code based on steganography, which is simply encoding a ppm image with text and later decoding it. When I run the code, I get the error, malloc(): corrupted top