Subject: | Tests in t/10examp.t fail when run under Taint mode |
Good morning,
I have run into an error during make test while trying to upgrade from DBI-1.20 to DBI-1.32.
t/10examp.t reports the following error when running under Taint mode:
[all tests so far execute correctly]
...
ok 102 at line 316
fetchrow_hashref('NAME_uc')
ok 103 at line 319
Insecure dependency in parameter 1 of DBI::st=HASH(0x824a59c)->FETCH method call while running with -T switch at t/10examp.t line 320.
DBI handle cleared whilst still active.
dbih_clearcom (sth 0x824c568 0x817f69c, com 0x824e988, imp DBD::ExampleP::st):
FLAGS 0x60011: COMSET Warn TaintIn TaintOut
PARENT DBI::db=HASH(0x82480f0)
KIDS 0 (0 Active)
IMP_DATA ARRAY(0x824d058)
NUM_OF_FIELDS 3
NUM_OF_PARAMS 1
...
[tests end prematurely]
If I run without Taint mode (i.e. I change the first line of the script from #!perl -Tw to #!perl -w and I then execute make test), all of the tests execute correctly.
I am running Perl:
[root@whatever DBI-1.32]# perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
Platform:
osname=linux, osvers=2.2.5-22smp, archname=i386-linux
uname='linux porky.devel.redhat.com 2.2.5-22smp #1 smp wed jun 2 09:11:51 edt 1999 i686 unknown '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='cc', optimize='-O2 -m486 -fno-strength-reduce', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
stdchar='char', d_stdstdio=undef, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lc -lposix -lcrypt
libc=, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Built under linux
Compiled at Feb 2 2000 15:35:58
@INC:
/usr/lib/perl5/5.00503/i386-linux
/usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i386-linux
/usr/lib/perl5/site_perl/5.005
on Linux:
[root@whatever DBI-1.32]# uname -a
Linux whatever.carescout.com 2.2.14-5.0smp #1 SMP Tue Mar 7 21:01:40 EST 2000 i686 unknown