View Issue Details

IDProjectCategoryView StatusLast Update
0018236CentOS-8perl-DBD-MySQLpublic2021-06-29 14:10
ReporterGazoo Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version8.4.2105 
Summary0018236: Problems with type conversions
DescriptionThere is a data typing bug in the current perl-DBD-MySQL-4.046 package on Centos 8 that breaks packages like Amavis.

The issue is outlined here:
https://github.com/perl5-dbi/DBD-mysql/issues/78

It was fixed upstream here:
https://github.com/perl5-dbi/DBD-mysql/pull/313/commits/c22928d951546e6687ede2c290a2b96a60c9fd6d
Steps To ReproduceBecause of this bug Amavis will treat all email as spam.
Additional InformationOther operating systems have back ported a fix like this:
https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/databases/p5-DBD-mysql/patches/patch-dbdimp_c?rev=1.4&content-type=text/plain

I'm including a back ported patch for perl-DBD-MySQL-4.046-3.module_el8.1.0+203+e45423dc.x86_64 that will fix the issue.
TagsNo tags attached.

Activities

Gazoo

Gazoo

2021-06-29 14:02

reporter  

dbdimp_c.patch (905 bytes)   
backport fix for issue 
https://github.com/perl5-dbi/DBD-mysql/issues/78

--- a/dbdimp.c	2018-02-04 13:46:33.000000000 -0700
+++ b/dbdimp.c	2021-06-25 04:49:56.623078035 -0600
@@ -4384,8 +4384,7 @@
           if (!(fields[i].flags & ZEROFILL_FLAG))
           {
             /* Coerce to dobule and set scalar as NV */
-            (void) SvNV(sv);
-            SvNOK_only(sv);
+            sv_setnv(sv, SvNV(sv));
           }
           break;
 
@@ -4396,13 +4395,11 @@
             /* Coerce to integer and set scalar as UV resp. IV */
             if (fields[i].flags & UNSIGNED_FLAG)
             {
-              (void) SvUV(sv);
-              SvIOK_only_UV(sv);
+              sv_setuv(sv, SvUV(sv));
             }
             else
             {
-              (void) SvIV(sv);
-              SvIOK_only(sv);
+              sv_setiv(sv, SvIV(sv));
             }
           }
           break;
dbdimp_c.patch (905 bytes)   
Gazoo

Gazoo

2021-06-29 14:10

reporter   ~0038512

Also reported on BZ here: https://bugzilla.redhat.com/show_bug.cgi?id=1976167

Issue History

Date Modified Username Field Change
2021-06-29 14:02 Gazoo New Issue
2021-06-29 14:02 Gazoo File Added: dbdimp_c.patch
2021-06-29 14:10 Gazoo Note Added: 0038512