From 9931b3c7a812ab58884e5ae5f17fcd1b2e81514f Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Fri, 26 Aug 2011 15:52:22 +0000 Subject: Avoid overflow in cuesheet marker positioning. Fixes FS#12246. Thanks to Nick Peskett. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30359 a1c6a512-1295-4272-9138-f99709370657 --- apps/cuesheet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/cuesheet.c') diff --git a/apps/cuesheet.c b/apps/cuesheet.c index a6831fa97d..afe9531ce7 100644 --- a/apps/cuesheet.c +++ b/apps/cuesheet.c @@ -364,7 +364,7 @@ void cue_draw_markers(struct screen *screen, struct cuesheet *cue, int i,xi; for (i=1; i < cue->track_count; i++) { - xi = x + (w * cue->tracks[i].offset)/tracklen; + xi = x + (w * (long long)cue->tracks[i].offset)/tracklen; draw_veritcal_line_mark(screen, xi, y, h); } } -- cgit v1.2.3