INNER CODE UNIT · C

pathname

iqiyi/xHook · libxhook/jni/xh_core.c:346

        pathname = line + pathname_pos;
        pathname_len = strlen(pathname);
        if(0 == pathname_len) continue;
        if(pathname[pathname_len - 1] == '\n')
        {
            pathname[pathname_len - 1] = '\0';
            pathname_len -= 1;
        }
        if(0 == pathname_len) continue;
        if('[' == pathname[0]) continue;

        // Find non-executable map, we need record it. Because so maps can begin with
        // an non-executable map.
        if (perm[2] != 'x') {
            prev_offset = offset;
            prev_base_addr = base_addr;
            memcpy(prev_perm, perm, sizeof(prev_perm));
            strcpy(prev_pathname, pathname);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…