Lines Matching refs:cursor
32 size_t cursor, datalen = pelen; in pefile_parse_binary() local
45 cursor = sizeof(*mz); in pefile_parse_binary()
47 chkaddr(cursor, mz->peaddr, sizeof(*pe)); in pefile_parse_binary()
51 cursor = mz->peaddr + sizeof(*pe); in pefile_parse_binary()
53 chkaddr(0, cursor, sizeof(pe32->magic)); in pefile_parse_binary()
54 pe32 = pebuf + cursor; in pefile_parse_binary()
55 pe64 = pebuf + cursor; in pefile_parse_binary()
59 chkaddr(0, cursor, sizeof(*pe32)); in pefile_parse_binary()
63 cursor += sizeof(*pe32); in pefile_parse_binary()
68 chkaddr(0, cursor, sizeof(*pe64)); in pefile_parse_binary()
72 cursor += sizeof(*pe64); in pefile_parse_binary()
84 if (cursor >= ctx->header_size || ctx->header_size >= datalen) in pefile_parse_binary()
87 if (ctx->n_data_dirents > (ctx->header_size - cursor) / sizeof(*dde)) in pefile_parse_binary()
90 ddir = pebuf + cursor; in pefile_parse_binary()
91 cursor += sizeof(*dde) * ctx->n_data_dirents; in pefile_parse_binary()
111 if (ctx->n_sections > (ctx->header_size - cursor) / sizeof(*sec)) in pefile_parse_binary()
113 ctx->secs = secs = pebuf + cursor; in pefile_parse_binary()