Is there a subject? Debajo not their prog, there is an announcement of the array in the global scope
unsigned char cache[1024 * 32];
after the transfer of this happiness in the dynamic memory by
unsigned char *cache = NULL;
cache = (unsigned char*)malloc(1024 * 32);
appears the flight is on memory because a different variable abruptly becomes not empty (and should be 0 all the time). Apparently somewhere something is not there writes, would be under Windows delagil would devpartner, but under Linux I don't know what would be so podavaite.