Revision 5dd6be06
b/qtest.c | ||
---|---|---|
282 | 282 |
uint8_t *data; |
283 | 283 |
|
284 | 284 |
g_assert(words[1] && words[2]); |
285 |
addr = strtoul(words[1], NULL, 0); |
|
286 |
len = strtoul(words[2], NULL, 0); |
|
285 |
addr = strtoull(words[1], NULL, 0);
|
|
286 |
len = strtoull(words[2], NULL, 0);
|
|
287 | 287 |
|
288 | 288 |
data = g_malloc(len); |
289 | 289 |
cpu_physical_memory_read(addr, data, len); |
... | ... | |
302 | 302 |
size_t data_len; |
303 | 303 |
|
304 | 304 |
g_assert(words[1] && words[2] && words[3]); |
305 |
addr = strtoul(words[1], NULL, 0); |
|
306 |
len = strtoul(words[2], NULL, 0); |
|
305 |
addr = strtoull(words[1], NULL, 0);
|
|
306 |
len = strtoull(words[2], NULL, 0);
|
|
307 | 307 |
|
308 | 308 |
data_len = strlen(words[3]); |
309 | 309 |
if (data_len < 3) { |
Also available in: Unified diff