Hello community, here is the log from the commit of package pagemon for openSUSE:Factory checked in at 2019-12-18 14:46:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pagemon (Old) and /work/SRC/openSUSE:Factory/.pagemon.new.4691 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pagemon" Wed Dec 18 14:46:07 2019 rev:8 rq:757629 version:0.01.18 Changes: -------- --- /work/SRC/openSUSE:Factory/pagemon/pagemon.changes 2019-10-03 14:08:21.588270030 +0200 +++ /work/SRC/openSUSE:Factory/.pagemon.new.4691/pagemon.changes 2019-12-18 14:48:41.733948968 +0100 @@ -1,0 +2,7 @@ +Tue Dec 17 19:39:07 UTC 2019 - Martin Hauke <[email protected]> + +- Update to version 0.01.18 + * Fix indexing out-of-range error on g.mem_info.pages when idx + is out of range + +------------------------------------------------------------------- Old: ---- pagemon-0.01.17.tar.xz New: ---- pagemon-0.01.18.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pagemon.spec ++++++ --- /var/tmp/diff_new_pack.SxzKZJ/_old 2019-12-18 14:48:42.089949130 +0100 +++ /var/tmp/diff_new_pack.SxzKZJ/_new 2019-12-18 14:48:42.089949130 +0100 @@ -18,7 +18,7 @@ Name: pagemon -Version: 0.01.17 +Version: 0.01.18 Release: 0 Summary: Interactive memory/page monitoring tool License: GPL-2.0-or-later ++++++ pagemon-0.01.17.tar.xz -> pagemon-0.01.18.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pagemon-0.01.17/Makefile new/pagemon-0.01.18/Makefile --- old/pagemon-0.01.17/Makefile 2019-09-25 17:55:10.000000000 +0200 +++ new/pagemon-0.01.18/Makefile 2019-12-16 14:17:45.000000000 +0100 @@ -18,7 +18,7 @@ # Author: Colin Ian King <[email protected]> # -VERSION=0.01.17 +VERSION=0.01.18 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 -fPIC LDFLAGS += -lncurses diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pagemon-0.01.17/pagemon.c new/pagemon-0.01.18/pagemon.c --- old/pagemon-0.01.17/pagemon.c 2019-09-25 17:55:10.000000000 +0200 +++ new/pagemon-0.01.18/pagemon.c 2019-12-16 14:17:45.000000000 +0100 @@ -1345,7 +1345,7 @@ int32_t curxpos = (p->xpos * 3) + ADDR_OFFSET; const position_t *pc = &position[VIEW_PAGE]; const index_t cursor_index = page_index + - zoom * (pc->xpos + (pc->ypos * pc->xmax)); + zoom * (pc->xpos + ((index_t)pc->ypos * pc->xmax)); percent = (g.mem_info.npages > 0) ? 100.0 * cursor_index / g.mem_info.npages : 100; @@ -1382,7 +1382,7 @@ } else { int32_t curxpos = p->xpos + ADDR_OFFSET; const index_t cursor_index = page_index + - zoom * (p->xpos + (p->ypos * p->xmax)); + zoom * (p->xpos + ((index_t)p->ypos * p->xmax)); percent = (g.mem_info.npages > 0) ? 100.0 * cursor_index / g.mem_info.npages : 100; @@ -1646,7 +1646,7 @@ if (g.view == VIEW_MEM) { const position_t *pc = &position[VIEW_PAGE]; const index_t cursor_index = page_index + - zoom * (pc->xpos + (pc->ypos * pc->xmax)); + zoom * (pc->xpos + ((index_t)pc->ypos * pc->xmax)); const addr_t addr = (cursor_index >= (index_t)g.mem_info.npages) ? g.mem_info.last_addr :
