Open rwfranks opened 4 weeks ago
Thu Nov 01 13:19:01 2018 bohica [...] ntlworld.com - Correspondence added
I'm afraid it works fine for me with DBD::SQLite and an older Perl:
$ cat 1 1 $ sqlite3 xx.db
SQLite version 3.22.0 2018-01-22 18:45:57 Enter ".help" for usage hints.
sqlite> select * from zzz_scores; 1|90.0 5|100.0 $ perl -t x.pl (95, 2)
code the same as what you supplied except the call to DBI->connect.
Not saying the problem isn't DBI or tainting but this might help.
Martin
-- Martin J. Evans Wetherby, UK
Thu Nov 01 13:19:02 2018 The RT System itself - Status changed from 'new' to 'open'
Transcribed verbatim from CPAN RT#127542, warts and all.
Thu Nov 01 13:08:24 2018 mp2 [...] netcasters.com - Ticket created Subject: Tainted placeholder value
Date: Thu, 1 Nov 2018 12:59:33 -0400 To: bug-DBI@rt.cpan.org From: Ted mp2@netcasters.com
Hi,
When the id in the query below is tainted, the avg_score is 0, yet the count is 2.
If the selectrow_array is substituted for prepare/execute/fetchrow_array then there is no problem.
Perl 5.28 DBI 1.642 MySQL 8.0.12