INNER CODE UNIT · C

h

iqiyi/xHook · libxhook/jni/xh_elf.c:307

        h = (h << 4) + *name++;
        g = h & 0xf0000000;
        h ^= g;
        h ^= g >> 24;
    }

    return h;
}

//GNU hash func
static uint32_t xh_elf_gnu_hash(const uint8_t *name)
{
    uint32_t h = 5381;

    while(*name != 0)
    {
        h += (h << 5) + *name++;
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…