Article View: linux.debian.bugs.rc
Article #2573Bug#1152614: marked as done (libiodbc2: segfault on first SQLAllocHandle, -std=c17 hides strdup() prototype and truncates point...
From: Debian Bug Tracking System
Date: Sat, 07 Nov 2026 11:10
Date: Sat, 07 Nov 2026 11:10
483 lines
25289 bytes
25289 bytes
This is a multi-part message in MIME format...
------------=_1794049622-690945-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
Your message dated Sat, 07 Nov 2026 11:05:55 +0000
with message-id <E1xPeF9-0000000ChnK-1rD6@fasolo.debian.org>
and subject line Bug#1152614: fixed in libiodbc2 3.52.16-3
has caused the Debian Bug report #1152614,
regarding libiodbc2: segfault on first SQLAllocHandle, -std=3Dc17 hides str=
dup() prototype and truncates pointers
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)
--=20
1152614: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1152614
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
------------=_1794049622-690945-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at submit) by bugs.debian.org; 30 Oct 2026 15:41:42 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
(2024-03-25) on buxtehude.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-15.1 required=4.0 tests=BAYES_00,
BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,
DKIM_VALID_EF,FOURLA,FREEMAIL_FROM,HAS_PACKAGE,SPF_HELO_PASS,SPF_PASS
autolearn=ham autolearn_force=no
version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 107; hammy, 150; neutral, 204; spammy,
0. spammytokens: hammytokens:0.000-+--stringh, 0.000-+--string.h,
0.000-+--UD:string.h, 0.000-+--C23, 0.000-+--sk:wimplic
Return-path: <markus-klein@live.de>
Received: from mail-francesouthazolkn190110001.outbound.protection.outlook.com ([2a01:111:f403:d207::1]:12408 helo=MRWPR03CU001.outbound.protection.outlook.com)
by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP384R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <markus-klein@live.de>)
id 1xMoje-004kFX-1k
for submit@bugs.debian.org;
Fri, 30 Oct 2026 15:41:42 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
b=XnumHS2VkyiXuuvAlf3Sth3OO/6zoQeGZ3wLtwV9QylX1nyaq9COfp6QyxPFZvBpO3u2khnBDlpdzO0/NuCUuhfHhEQLVaRn/YwoV91VLGmPUcn70F5o/buh+vq4At/1MuJikTVDhtMyvf+EtyUZPCMMs0WjutZ+sLVIbmP+w+Zo3PQaD3OEeIIaPILLGYet9dq4040B3H7ma6in8MEdfvS3Npz7H2Gemz1mSl7Z0s+QQ3fcYS/H51U010JqBOWa3yKEfrrrx1QwcqsOPqfh7ubzRzNTXu0CpKEHojPBw31WAen1vNKFL4BOpoQBCDMmIiCHz/zYytg0nxuZhP6BFg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector10001;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=zAR0+HunPjN7GIar9VqCbUfl6IGv9jGnAWuC2g62BRQ=;
b=jMoHpqlRV30VACBwmEYtvoEz0mrrop2jYT5CX6gdmAlJPcWY+4IBlnguTPxdmv5BTx9D7i71Ywfuq/jCqHNIkm3+fXUjFoVI3EVMZrlOU+n5J1gcLR2PsVcSgkv8jmMqf/LZlEw3upxh8eQwe+P2VuO0BfnHZ58o60UhlvU2zisQUROom0Kp5FFrWXC6adCw/wRxZKr9e83KO6JhQm0llY2y0MEDXT4kRe1OfQJqwT/lRs+U8P1dCfHVzGWxf/L7TP9tPvJyNkchGOQZhcumUR5CWmmqCLLvu7Cq+iHpskA4C+qmEuJGFuJrMHrNIi/D/195+W9ibtRFP1Cc5VS9pw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=LIVE.DE; s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=zAR0+HunPjN7GIar9VqCbUfl6IGv9jGnAWuC2g62BRQ=;
b=s4plrxX+tdjgJJdiNDsm4ncl2E9jfgvn1o5/wqIK4c8TXzYjhtWOc0LZMxaro/LxYWd6hD72Y7yBYwgNXLvbsbLLNVlJGpjflhFlOjcFqAC6XT6LMkKkcwpxb/54CtzH0zn9KH4X84eRLu+t00y1Y+uqCXdv5rz0fyv4SSiqyxprU5de4IwzS1zbLF3MUeXD86rvAg8tz6dr+kSTbl3uCc34J6+rMBbAXK+k+ltD5WYZsUewAM4MaN6RSkMiB9Jaboxg5WHvfOVwpIXzGwEcUPGm9GJ7YiIdmi1TmiL7IlafIKlDg+tsHUm1tJXnO+twO/1wWrMVQIY/lQrCwVfZTw==
Received: from GV2P192MB2037.EURP192.PROD.OUTLOOK.COM (2603:10a6:150:c0::15)
by PR3P192MB0603.EURP192.PROD.OUTLOOK.COM (2603:10a6:102:4a::20) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.569.9; Fri, 30 Oct
2026 15:41:37 +0000
Received: from GV2P192MB2037.EURP192.PROD.OUTLOOK.COM
([fe80::ba91:b153:8126:e179]) by GV2P192MB2037.EURP192.PROD.OUTLOOK.COM
([fe80::ba91:b153:8126:e179%5]) with mapi id 15.21.0569.008; Fri, 30 Oct 2026
15:41:37 +0000
Message-ID:
<GV2P192MB203729EECAF3D5F76B7F1C24986D2@GV2P192MB2037.EURP192.PROD.OUTLOOK.COM>
Date: Fri, 30 Oct 2026 16:41:36 +0100
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: submit@bugs.debian.org
From: Markus Klein <markus-klein@live.de>
Subject: libiodbc2: segfault on first SQLAllocHandle, -std=c17 hides strdup()
prototype and truncates pointers
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-ClientProxiedBy: FR4P281CA0432.DEUP281.PROD.OUTLOOK.COM
(2603:10a6:d10:d1::18) To GV2P192MB2037.EURP192.PROD.OUTLOOK.COM
(2603:10a6:150:c0::15)
X-Microsoft-Original-Message-ID:
<fd67eea2-f1dd-43bd-8bb3-474101b9082e@live.de>
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: GV2P192MB2037:EE_|PR3P192MB0603:EE_
X-MS-Office365-Filtering-Correlation-Id: a73d597b-bb31-4302-6ae3-08df369c48bc
X-Microsoft-Antispam:
BCL:0;ARA:14566002|8060799015|4140399003|20031999006|25010399006|19110799012|25031999004|24071999003|5072599009|6090799003|23021999003|15080799012|24021099003|41001999006|39105399006|12091999003|10035399007|40105399003|440099028|3412199025;
X-Microsoft-Antispam-Message-Info:
=?utf-8?B?cW9HQjJvdGExRGZNU0dQT2RETXRqSlpzMy9yMGJZbnhXM0VPSHd6UWUxS0xN?=
=?utf-8?B?VkNaRDJXMWlkZ1VZekFkeUcvL2JpN0Yya2duS1o0bFl0dWt6VVVkSFBQYXQy?=
=?utf-8?B?Y0VGZUJZZzJER3l5cmZlK2o5Z2FOS0Q4dFUrN0E5cUtVN01wOGNRalRYUTRh?=
=?utf-8?B?U2FmTXJicTE1SjRqYUJTYlhJUlkvTkQxMGZUclRwTmdiZUtaOC92eHVM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NjZ1V1Q2VRYTBXTjlXald6SzNKNkVt?=
=?utf-8?B?d2Nqc2E0L0RGZzRLcit5V0NuWXJDZS90K2YvSXRib3lJRmo4dEd2RVRBS3gy?=
=?utf-8?B?eUlmK29YUlBpcVVTQkJuZUF5T2JQTmJEMmVuTG5OeGlZRHo2NVVDNmlpSzJO?=
=?utf-8?B?czRqZlRBSS8vRU1UYjR4QUdvaWd5TW9SVjhFRW1Iem9PdTdrckNFZmt6aEJo?=
=?utf-8?B?QXZwaTRieFRoTUxmanRlOEQwb2prR3crQkhXaDBNMWV2bDI2cXN0RkZUaURa?=
=?utf-8?B?bGFheHhSR0hiU2l3QTZGWUxCcGtqR3hBWWI5VEZTWkcwS212T296LzhHOVhD?=
=?utf-8?B?SGhmRE9uTm1tSVo4TFhsSXorbkc3cHFVU0huZGR5QXFRQ2FEVjhTUzFLbWZX?=
=?utf-8?B?MHdXc0R6cVJLMUtXY2ZqTWFsVDQ5cTBtT0hHMlYyUUNEN3M3eVNiOGNEVGl1?=
=?utf-8?B?K1pLSlErd1gzb1BaZXQrU0dxYlhkWFk1SG1KNDQxMWZQcWczcUdzcVpPN3ZR?=
=?utf-8?B?ZEhPQmYzY0o0ZGx0MWJBZVp0dkFFbFh4bkFFZElrTnQzQUxUcVpJMmszR1BT?=
=?utf-8?B?a1ZmS2lxVUdUb2pwQVN5Y0pnWERsZGl3U3dURjFHa1JrWFFkOHR5WWN0cmZr?=
=?utf-8?Q?dHWYOkJ5THsLNLZhqroMcBTVCXvOujyl?=
X-OriginatorOrg: sct-15-20-9412-4-msonline-outlook-4fb8a.templateTenant
X-MS-Exchange-CrossTenant-Network-Message-Id: a73d597b-bb31-4302-6ae3-08df369c48bc
X-MS-Exchange-CrossTenant-AuthSource: GV2P192MB2037.EURP192.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2026 15:41:37.5256
(UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg:
00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3P192MB0603
Delivered-To: submit@bugs.debian.org
Package: libiodbc2
Version: 3.52.16-2
Severity: grave
Tags: patch
Justification: renders package unusable
Dear Maintainer,
I am the maintainer of the `odbc-sys` Rust crate. After updating the
runners of the GitHub workflow to Ubuntu 26.04 my tests against iodbc
started failing. I told Claude to investigate the issue and it found
that the package should be build with -std=gnu17 rather than -std=c17.
Underneath the detailed root cause analysis as generated by claude
---
Since 3.52.16-1, every program linked against libiodbc2 segfaults on its
first ODBC call, allocating an environment handle with SQLAllocHandle. I
reproduced this on Ubuntu 26.04 ("resolute"), which ships 3.52.16-2
unchanged from Debian. 3.52.9-4 (Ubuntu 24.04) works fine with the same
program.
Cause
-----
3.52.16-1 started building with -std=c17 (#1097202). That is strict ISO C,
so glibc's <string.h> does not declare POSIX functions such as strdup()
and strcasecmp(). debian/rules also passes
-Wno-implicit-function-declaration -Wno-int-conversion
-Wno-incompatible-pointer-types
which hides the resulting diagnostics. Without these flags the build fails:
../include/iodbc.h:116:34: error: implicit declaration of function
'strdup' [-Wimplicit-function-declaration]
SQLGetInstalledDrivers.c:104:10: error: implicit declaration of
function 'strcasecmp' [-Wimplicit-function-declaration]
SQLGetInstalledDrivers.c:167:31: error: assignment to 'void *' from
'int' makes pointer from integer without a cast [-Wint-conversion]
Because strdup() is implicitly declared as returning int, the returned
64-bit pointer is truncated to 32 bits. In _iodbcdm_cfg_init()
(iodbcinst/inifile.c), pconfig->fileName = STRDUP(filename) stores such
a truncated pointer, and _iodbcdm_cfg_done() then calls free() on it.
This happens while the environment handle is allocated, when the driver
manager reads "AppUnicodeType" from odbcinst.ini, so every application
crashes.
Backtrace from a -g -O0 build using the flags from debian/rules (note the
32-bit value passed to free()):
Program received signal SIGSEGV, Segmentation fault.
#0 __GI___libc_free (mem=0x6f63e0e0) at ./malloc/malloc.c:3333
#1 _iodbcdm_cfg_done (pconfig=0x5fe96f63e070) at inifile.c:182
#2 _iodbcdm_cfg_init (ppconf=..., filename="/etc/odbcinst.ini",
doCreate=0) at inifile.c:163
#3 _iodbcdm_cfg_search_init (ppconf=..., filename="odbcinst.ini",
doCreate=0) at inifile.c:1262
#4 GetPrivateProfileString (lpszSection="ODBC",
lpszEntry="AppUnicodeType", ...) at SQLGetPrivateProfileString.c:98
Reproducer
----------
$ cat t.c
#include <stdio.h>
#include <sql.h>
#include <sqlext.h>
int main(void) {
SQLHANDLE env, dbc;
SQLRETURN r;
r = SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &env);
printf("env %d\n", r);
r = SQLSetEnvAttr(env, SQL_ATTR_ODBC_VERSION,
(SQLPOINTER)SQL_OV_ODBC3, 0);
r = SQLAllocHandle(SQL_HANDLE_DBC, env, &dbc); printf("dbc %d\n", r);
SQLFreeHandle(SQL_HANDLE_DBC, dbc);
SQLFreeHandle(SQL_HANDLE_ENV, env);
puts("ok");
return 0;
}
$ gcc t.c -I/usr/include/iodbc -liodbc -o t && ./t
Segmentation fault (core dumped)
No odbc.ini or odbcinst.ini needs to exist.
Fix
---
Build with -std=gnu17 instead of -std=c17. This still avoids the C23
issues from #1097202 (the old-style "()" function pointer declarations),
but keeps the POSIX/GNU declarations visible. With -std=gnu17 the
upstream sources compiled cleanly with GCC 15.2.0 even without the three
-Wno-* flags, and the reproducer above runs successfully (env 0, dbc 0,
ok). I would suggest dropping those flags as well, so that problems like
this one fail the build again:
--- a/debian/rules
+++ b/debian/rules
@@
-export CFLAGS += -std=c17 -Wno-implicit-function-declaration
-Wno-int-conversion -Wno-incompatible-pointer-types
+export CFLAGS += -std=gnu17
I tested this with the upstream configure/make on the 3.52.16-2 source,
not with a full dpkg-buildpackage run.
Environment where it was reproduced: Ubuntu 26.04 (Docker image
ubuntu:26.04), libiodbc2 3.52.16-2, gcc 15.2.0, x86_64.
Found via the CI of the Rust crate odbc-sys:
https://github.com/pacman82/odbc-sys/actions/runs/41037444708/job/124001751617
Regards,
Markus Klein
------------=_1794049622-690945-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at 1152614-close) by bugs.debian.org; 7 Nov 2026 11:05:58 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
(2024-03-25) on buxtehude.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-113.1 required=4.0 tests=BAYES_00,DKIM_SIGNED,
DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FVGT_m_MULTI_ODD,HAS_BUG_NUMBER,
MD5_SHA1_SUM,PGPSIGNATURE,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,
USER_IN_DKIM_WELCOMELIST autolearn=ham autolearn_force=no
version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 13; hammy, 150; neutral, 292; spammy,
0. spammytokens: hammytokens:0.000-+--HX-Debian:DAK,
0.000-+--H*rp:D*ftp-master.debian.org, 0.000-+--HX-DAK:process-upload,
0.000-+--UD:debian.tar.xz, 0.000-+--H*r:sk:fasolo.
Return-path: <envelope@ftp-master.debian.org>
Received: from mitropoulos.debian.org ([2001:648:2ffc:deb:216:61ff:fe9d:958d]:58318)
by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <envelope@ftp-master.debian.org>)
id 1xPeFC-002tc8-0l
for 1152614-close@bugs.debian.org;
Sat, 07 Nov 2026 11:05:58 +0000
Received: via submission
from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=fasolo.debian.org,EMAIL=hostmaster@fasolo.debian.org (verified)
by mitropoulos.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <envelope@ftp-master.debian.org>)
id 1xPeFA-008ozd-27
for 1152614-close@bugs.debian.org;
Sat, 07 Nov 2026 11:05:56 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=ftp-master.debian.org; s=smtpauto.fasolo; h=Date:Message-Id:Content-Type:
Subject:MIME-Version:To:Reply-To:From:Cc:Content-Transfer-Encoding:Content-ID
:Content-Description:In-Reply-To:References;
bh=BCyViD1v3QIIztz90RTn0Eg90h96G7K3erjCicAdilI=; b=BmHufqcXF75I/Lho7aWFr87zWB
qOSkodk3LjC3x1cjTqc5SBns7uhWcE7GrvhW9iR7Jv8CNLLTn+jxdFDgrzCJP035Z68982yVUTdQc
qfOpVefVSUovj3fLAeS3lciqBgD+KIDS27w4pSZXb7RPo6uyd0iBSpNZrBzBxH8tfl2bcMaE8FUhn
JVm22cDWCVwDG+g9aeJirRtkKy3xyzlZPm40MVCU21YWPzkexXT+bEFmI/dmfO+ly/EJjtiZcLDqa
jj1FLtG64wtzyg/6EKCfIoVqqRqAxCNTe1Z6nZg5sM2q5XiJUvDPuJLD8FwFi0SN/t2t0NTmhDckh
diBQlZSg==;
Received: from dak by fasolo.debian.org with local (Exim 4.98.2)
(envelope-from <envelope@ftp-master.debian.org>)
id 1xPeF9-0000000ChnK-1rD6;
Sat, 07 Nov 2026 11:05:55 +0000
From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
Reply-To: Pino Toscano <pino@debian.org>
To: 1152614-close@bugs.debian.org
X-DAK: dak process-upload
X-Debian: DAK
X-Debian-Package: libiodbc2
Debian: DAK
Debian-Changes: libiodbc2_3.52.16-3_source.changes
Debian-Source: libiodbc2
Debian-Version: 3.52.16-3
Debian-Architecture: source
Debian-Suite: unstable
Debian-Archive-Action: accept
MIME-Version: 1.0
Subject: Bug#1152614: fixed in libiodbc2 3.52.16-3
Content-Type: multipart/signed; micalg="pgp-sha256";
protocol="application/pgp-signature";
boundary="===============1523962172268254882=="
Message-Id: <E1xPeF9-0000000ChnK-1rD6@fasolo.debian.org>
Date: Sat, 07 Nov 2026 11:05:55 +0000
X-CrossAssassin-Score: 2
--===============1523962172268254882==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Source: libiodbc2
Source-Version: 3.52.16-3
Done: Pino Toscano <pino@debian.org>
We believe that the bug you reported is fixed in the latest version of
libiodbc2, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1152614@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Pino Toscano <pino@debian.org> (supplier of updated libiodbc2 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sat, 07 Nov 2026 11:34:57 +0100
Source: libiodbc2
Architecture: source
Version: 3.52.16-3
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Pino Toscano <pino@debian.org>
Closes: 1124867 1152614
Changes:
libiodbc2 (3.52.16-3) unstable; urgency=3Dmedium
.
* QA upload.
* Fix the handling of additional compiler flags:
- append the custom build flags using DEB_CFLAGS_MAINT_APPEND, rather th=
an
overwriting CFLAGS; this makes the system build flags respected again
(Closes: #1124867)
- pass -std=3Dgnu17 instead of -std=3Dc17 to really bring back the defau=
lt GCC
behaviour prior to GCC 15; since the additional extensions are used, t=
he
CFLAGS -Wno-implicit-function-declaration -Wno-int-conversion
-Wno-incompatible-pointer-types can be dropped, as no more needed
(Closes: #1152614)
* Extend the buffer in patch 06_add_system_dir.diff to 20248 characters,
so it can fully contain the paths used for it.
* Drop patch 05_unicode_includes.diff, as <iodbc.h> is already included.
* Drop the leftovers of the old 'acc' autopkgtest, including the dh-acc bu=
ild
dependency.
* Drop extremely old conflicts.
* Include /usr/share/dpkg/architecture.mk rather than redefining variables.
* Remove trailing whitespaces in changelog.
* Remove the leftovers of the iodbc package, i.e. the suggests and the men=
tion
in the description of the libiodbc2 package.
Checksums-Sha1:
cd3a8d0fe287473e8e3bb1a045c00dc214893c41 1942 libiodbc2_3.52.16-3.dsc
37d73ea57b5b046fae0070b8582f7a0b552958a4 9440 libiodbc2_3.52.16-3.debian.tar=
.xz
da10bca6b3a0d7478e952e58e9eb3308d810b513 6216 libiodbc2_3.52.16-3_source.bui=
ldinfo
Checksums-Sha256:
ec43601cb095f2a2bea043ca9756f17ce5ff1592823c4b90a9688ce53acef4a8 1942 libiod=
bc2_3.52.16-3.dsc
ae5988b14734446c692159aa2cc9a366cf14a45d09f83da015dfbcfd640bbc85 9440 libiod=
bc2_3.52.16-3.debian.tar.xz
db25d2862d7b7a3435bb1c380f58e0ca522854432706cf6779905d3a6a29d142 6216 libiod=
bc2_3.52.16-3_source.buildinfo
Files:
4d9d146103abcfd2cf558f5627cb6af8 1942 libs optional libiodbc2_3.52.16-3.dsc
3ea0f2434afbeb2b1c8e90591081ac4b 9440 libs optional libiodbc2_3.52.16-3.debi=
an.tar.xz
e906f559c6dfa738c63c267aefc4624e 6216 libs optional libiodbc2_3.52.16-3_sour=
ce.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEXyqfuC+mweEHcAcHLRkciEOxP00FAmru/uIACgkQLRkciEOx
P03c/hAAr1LJojHdWEdcz9NZb0z62q1ocVfCjI+8YTac9HwwZqAQsE9dulYwyeG0
RO3hC3Us2F94nHHj8ISAgmpg/M74Kb2RPTfiUJnX44eG6ht5HVrTL6Kvq9QxYYce
K5BKzigP/qmExzmNoDs3QdJzD4g38OIPnTcppxlx8YooaeFGZPXBzxnTurKPULQp
PHA6d//sNwhISuQH6ASX5IDrowVSxQlRGfLQCEbld9ZOB5W90jc1rh9BPUFqmetm
OrtC71x3MhAF0PhH6QwyWFh4ITK//QpRkFZHszsXpsZ3CtdOExLcP0+u4g71g9bq
Se33gSQxIjrc1FxvPgCLdIMMf6T8Kv/jX8zB3Av8HHO2S+z2mtNT0UBmDn6IDoE4
4KdgU8ah8Hqmf7Kn6d2UpltajG3EHxAWC/Y25ZGqpOwR17lX0vF+xErRC4URbMF7
4JrS9yluRduj2V84s4OqIBUdG41TGa4NdMVBjF0oCDfdnITewNLRsAE/UdnTRXJR
NuIyGJj0oZszt1KT+ztxN338CKjsAM+Hnyz1Z5aU/NrmOlWOUCtI5x/rm47Hgy4E
adJSGVGfzFEq+JEJuZdNStKmVIzoqCJ/S9BawPkHCuOlbx77SBVUVLBHw1B9/uri
2B83HDTYocZi2oFItyTxgAFxXGTP59NEPJ+L5kKko+xVsNcMB+o=3D
=3D3MpE
-----END PGP SIGNATURE-----
--===============1523962172268254882==
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQTziqJOuF8J+ZI8pJSb9qggYcy5IQUCau8GEwAKCRCb9qggYcy5
IYBdAQCCxyBIkKMHyU5o0tFN6xG/emDKekiyr3VAMe3hJ2AZWwD/aFthGflX/K2w
vC5Mw9e0+FrPYP8uxDUbOPBZDyovggs=
=nnli
-----END PGP SIGNATURE-----
--===============1523962172268254882==--
------------=_1794049622-690945-0--
Technical Details
Message-ID:
<NWMt3-anBM-21@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NWMt3-anBM-23@gated-at.bofh.it> <NWMt3-anBM-25@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: "Debian Bug Tracking System" <owner@bugs.debian.org> Newsgroups: linux.debian.bugs.rc Subject: Bug#1152614: marked as done (libiodbc2: segfault on first SQLAllocHandle, -std=c17 hides strdup() prototype and truncates pointers) Date: Sat, 07 Nov 2026 12:10:01 +0100 Message-ID: <NWMt3-anBM-21@gated-at.bofh.it> References: <NWMt3-anBM-23@gated-at.bofh.it> <NWMt3-anBM-25@gated-at.bofh.it> X-Original-To: Pino Toscano <pino@debian.org> X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Sat Nov 7 11:07:10 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -2 MIME-Version: 1.0 X-Mailer: MIME-tools 5.510 (Entity 5.510) X-Debian-Pr-Message: closed 1152614 X-Debian-Pr-Package: libiodbc2 X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: libiodbc2 Reply-To: 1152614@bugs.debian.org Content-Type: multipart/mixed; boundary="----------=_1794049622-690945-0" X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/837464 List-ID: <debian-bugs-rc.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-rc/> Approved: robomod@news.nic.it Lines: 483 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 07 Nov 2026 11:07:02 +0000 X-Original-Message-ID: <handler.1152614.D1152614.1794049558690462.ackdone@bugs.debian.org> X-Original-References: <E1xPeF9-0000000ChnK-1rD6@fasolo.debian.org> <GV2P192MB203729EECAF3D5F76B7F1C24986D2@GV2P192MB2037.EURP192.PROD.OUTLOOK.COM>