[pkg-GD-devel] Bug#709062: libgd3: Using variables without initializing them first
Niels Thykier
niels at thykier.net
Mon May 20 15:08:00 UTC 2013
Package: libgd3
Version: 2.1.0~alpha1-2
Severity: minor
Tags: upstream
src/gd_tiff.c in readTiffBw. src_x is declared but its first use is
"++src_x".
"""
int src_x, src_y;
[...]
++src_x;
"""
To be honest, I have no clue why src_x is even present in that
function, since it does not appear to have any use whatsoever other
than incrementing a random int.
There is a second case in gdtestft, where imb is not initialized if
HAVE_LIBJPEG is not defined. Presumably this one is also a non-issue.
(Related note, the resource "FILE *in" is also leaked in gdtestft AFAICT.)
As the issues I found appear to be "non-issues" or "test-only" issues,
I have filed this as minor.
~Niels
More information about the pkg-GD-devel
mailing list