Skip to content

Commit e8c56a8

Browse files
committed
pri_taint fix
1 parent 2b9f826 commit e8c56a8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

panda/plugins/pri_taint/pri_taint.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,7 @@ void lava_taint_query(CPUState *cpu, target_ulong buf, LocType loc_t, target_ulo
203203
uint32_t data[LAVA_TAINT_QUERY_MAX_LEN] = {0};
204204
// this is just a snippet. we dont want to write 1M buffer
205205
if (loc_t == LocMem) {
206-
for (uint64_t i = 0; i < len; i++) {
207-
panda_physical_memory_read(phys + i, (uint8_t *)&data[i], 1);
208-
}
206+
panda_physical_memory_read(phys, (uint8_t *)&data, len);
209207
} else {
210208
for (uint64_t i = 0; i < len; i++) {
211209
data[i] = (uint8_t)(env->regs[buf] >> (8 * i));

0 commit comments

Comments
 (0)