From 5bdda6e4dd7ed9b590aa5428a48d796c653a84eb Mon Sep 17 00:00:00 2001 From: giraffedata Date: Tue, 3 Mar 2015 03:38:46 +0000 Subject: Fix use of unset variable git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2414 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/pamtosvg/pxl-outline.c | 2 +- doc/HISTORY | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/converter/other/pamtosvg/pxl-outline.c b/converter/other/pamtosvg/pxl-outline.c index 0dda3cc3..a1fa5299 100644 --- a/converter/other/pamtosvg/pxl-outline.c +++ b/converter/other/pamtosvg/pxl-outline.c @@ -269,7 +269,7 @@ findOneCenterline(bitmap_type const bitmap, */ { pm_pixelcoord pos; - pos.col = col; pos.row = bitmap.height - row - 1; + pos.col = originalCol; pos.row = bitmap.height - originalRow - 1; LOG2(" (%d,%d)", pos.col, pos.row); append_outline_pixel(&outline, pos); } diff --git a/doc/HISTORY b/doc/HISTORY index 818b6ac4..ec0fbb64 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -22,6 +22,10 @@ not yet BJH Release 10.70.00 nearly always. Always broken (These options were new in Netpbm 10.32 (February 2006)). + pamtosvg: fix use of unset variable; probably results in a + crash. Always present (pamtosvg was new in Netpbm 10.33 (March + 2006). + cameratopam: fix bug: variable used before set; unknown impact. Introduced in Netpbm 10.66 (March 2014). -- cgit 1.4.1