summaryrefslogtreecommitdiff
path: root/gui/sheet.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-20 20:39:08 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-20 20:39:08 -0300
commitb857d7dc32a12d8a1703110177d44289b8773fa7 (patch)
tree7c00e621270cae5b7b8cad8ec267f273be25965f /gui/sheet.c
parent1dc049786ea10a5629d79b278220ea923f74e422 (diff)
downloadeeshow-b857d7dc32a12d8a1703110177d44289b8773fa7.tar.gz
eeshow-b857d7dc32a12d8a1703110177d44289b8773fa7.tar.bz2
eeshow-b857d7dc32a12d8a1703110177d44289b8773fa7.zip
eeshow/gui/ (aoi_hover): could cause an access after free
Diffstat (limited to 'gui/sheet.c')
-rw-r--r--gui/sheet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/sheet.c b/gui/sheet.c
index 570315a..d1ec01c 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -419,9 +419,9 @@ static bool sheet_hover_update(void *user, int x, int y)
curr_sheet = find_corresponding_sheet(ctx->old_hist->sheets,
ctx->new_hist->sheets, ctx->curr_sheet);
- if (aoi_hover(ctx->aois, x, y))
+ if (aoi_hover(&ctx->aois, x, y))
return 1;
- return aoi_hover(curr_sheet->aois,
+ return aoi_hover(&curr_sheet->aois,
ex + curr_sheet->xmin, ey + curr_sheet->ymin);
}