In the funciton injector defined in src/audio_bitstream.c, there are 2 occurrences of making a pointer from integer without a cast, which is causing the compilation to fail:
unsigned char* adr = (((unsigned int)vm_get_sym_entry)&(0xFF000000)) + i;
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
int j = 0;
for(; j < magic_len; ++j)
if(adr[j] != PCM_Open_magic[j])
break;
if(j == magic_len){
PCM_Open = (((unsigned int)adr)|1);
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
break;
}
This problem is solved by adding the casts to unsigned char* and PCM_Open_t respectively.
In the funciton
injectordefined insrc/audio_bitstream.c, there are 2 occurrences of making a pointer from integer without a cast, which is causing the compilation to fail:This problem is solved by adding the casts to
unsigned char*andPCM_Open_trespectively.