X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=lib%2Fccdbg-rom.c;h=71bed2200478b2f9b56a199f2a8e7a8ee87d523f;hp=4559b4e7bd0d3476133b39cb70c9a1a3d79816e2;hb=17d2432a8b9c15963cd3b821f025ad33972ef477;hpb=8a9a3f02b951382573ff74dd6ce5a1c0f335fa86;ds=sidebyside diff --git a/lib/ccdbg-rom.c b/lib/ccdbg-rom.c index 4559b4e7..71bed220 100644 --- a/lib/ccdbg-rom.c +++ b/lib/ccdbg-rom.c @@ -45,7 +45,7 @@ ccdbg_rom_replace_xmem(struct ccdbg *dbg, struct hex_image *rom = dbg->rom; if (!rom) return 0; - + if (rom->address < addr + nbytes && addr < rom->address + rom->length) { int start, stop;