Esempio n. 1
0
unsigned int findmax_mem(unsigned int dsize)
{
    void * mem,*firstmem;
    unsigned int i;
    firstmem = uc_malloc(4);
    uc_free(firstmem);
    for(i = 0; i < dsize / 4 ; i++)
    {
        mem = uc_malloc(4 * i);

        if(mem == 0)
        {
            break;
        } else
            uc_free(mem);
    }
    return ((unsigned int)mem - (unsigned int)firstmem);
}
Esempio n. 2
0
void dev_uc_free(dev_uc_suite suite) {
        uc_free((struct uc_suite *)suite);
}
Esempio n. 3
0
void uc_free_static(void *addr)
{
    uc_free(addr);
}