Skip to content

Commit ad4cbf4

Browse files
authored
ext/pdo_firebird: Add LSAN suppression for isc_attach_database() (#17544)
1 parent 387ce30 commit ad4cbf4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1
-134
lines changed

.github/lsan-suppressions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
leak:acommon::DictInfoList::elements
22
leak:timer_create
33
leak:netsnmp_init_mib_internals
4+
leak:isc_attach_database

ext/pdo_firebird/tests/attr_datetime_format.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: attr date, time, and timestamp formats
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
require("testdb.inc");

ext/pdo_firebird/tests/autocommit.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: auto commit
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
/* Part of the error messages probably vary depending on the version of Firebird,

ext/pdo_firebird/tests/autocommit_change_mode.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: change auto commit
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
require("testdb.inc");

ext/pdo_firebird/tests/bug_15604.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ Bug #15604 It is not possible to pass a NULL value as an input parameter if the
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
require_once 'testdb.inc';

ext/pdo_firebird/tests/bug_47415.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ Bug #47415 PDO_Firebird segfaults when passing lowercased column name to bindCol
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
require 'testdb.inc';

ext/pdo_firebird/tests/bug_48877.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: bug 48877 The "bindValue" and "bindParam" do not work for PDO Fire
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129

ext/pdo_firebird/tests/bug_53280.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: bug 53280 segfaults if query column count is less than param count
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129

ext/pdo_firebird/tests/bug_62024.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ Bug #62024 Cannot insert second row with null using parametrized query (Firebird
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129

ext/pdo_firebird/tests/bug_64037.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ Bug #64037 Firebird return wrong value for numeric field
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129

ext/pdo_firebird/tests/bug_72583.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: Feature 72583 Fetch integers as php integers not as strings
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
require 'testdb.inc';

ext/pdo_firebird/tests/bug_72931.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: Bug 72931 Insert returning fails on Firebird 3
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
require 'testdb.inc';

ext/pdo_firebird/tests/bug_73087.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: bug 73087 segfault binding blob parameter
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
require 'testdb.inc';

ext/pdo_firebird/tests/bug_74462.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: Bug #74462 Returns only NULLs for boolean fields
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
require 'testdb.inc';

ext/pdo_firebird/tests/bug_76448.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ Bug #76448 (Stack buffer overflow in firebird_info_cb)
33
--EXTENSIONS--
44
pdo_firebird
55
sockets
6-
--XLEAK--
7-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
8-
See https://github.com/FirebirdSQL/firebird/issues/7849
96
--SKIPIF--
107
<?php if (PHP_INT_SIZE != 8) die("skip 64-bit only"); ?>
118
--FILE--

ext/pdo_firebird/tests/bug_76449.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ Bug #76449 (SIGSEGV in firebird_handle_doer)
33
--EXTENSIONS--
44
pdo_firebird
55
sockets
6-
--XLEAK--
7-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
8-
See https://github.com/FirebirdSQL/firebird/issues/7849
96
--FILE--
107
<?php
118
require_once "payload_server.inc";

ext/pdo_firebird/tests/bug_76450.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ Bug #76450 (SIGSEGV in firebird_stmt_execute)
33
--EXTENSIONS--
44
pdo_firebird
55
sockets
6-
--XLEAK--
7-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
8-
See https://github.com/FirebirdSQL/firebird/issues/7849
96
--FILE--
107
<?php
118
require_once "payload_server.inc";

ext/pdo_firebird/tests/bug_76452.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ Bug ##76452 (Crash while parsing blob data in firebird_fetch_blob)
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
require_once "payload_server.inc";

ext/pdo_firebird/tests/bug_76488.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: Bug #76488 Memory leak when fetching a BLOB field
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
require 'testdb.inc';

ext/pdo_firebird/tests/bug_77863.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: Bug #76488 PDO Firebird does not support boolean datatype in input
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129

ext/pdo_firebird/tests/bug_80521.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ Bug #80521 (Parameters with underscores no longer recognized)
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
require 'testdb.inc';

ext/pdo_firebird/tests/bug_aaa.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: cursor should not be marked as opened on singleton statements
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
require 'testdb.inc';

ext/pdo_firebird/tests/common.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ pdo_firebird
99
# magic auto-configuration
1010

1111
$config = array(
12-
// A bug in firebird causes a memory leak when calling `isc_attach_database()`. See https://github.com/FirebirdSQL/firebird/issues/7849
13-
'ENV' => ['LSAN_OPTIONS' => 'detect_leaks=0'],
1412
'TESTS' => 'ext/pdo/tests'
1513
);
1614

ext/pdo_firebird/tests/connect.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: connect/disconnect
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
require("testdb.inc");

ext/pdo_firebird/tests/ddl.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: DDL/transactions
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129

ext/pdo_firebird/tests/ddl2.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: DDL/transactions 2
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
require("testdb.inc");

ext/pdo_firebird/tests/dialect_1.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ if (strpos(getenv('PDO_FIREBIRD_TEST_DSN'), 'dialect=1')===false) {
88
die('skip: PDO_FIREBIRD_TEST_DSN must contain a string "dialect=1"');
99
}
1010
?>
11-
--XLEAK--
12-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
13-
See https://github.com/FirebirdSQL/firebird/issues/7849
1411
--FILE--
1512
<?php
1613
require("testdb.inc");

ext/pdo_firebird/tests/error_handle.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: error handle
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129

ext/pdo_firebird/tests/execute.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: prepare/execute/binding
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
require("testdb.inc");

ext/pdo_firebird/tests/execute_block.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc');
77
?>
8-
--XLEAK--
9-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
10-
See https://github.com/FirebirdSQL/firebird/issues/7849
118
--FILE--
129
<?php
1310
require("testdb.inc");

ext/pdo_firebird/tests/fb4_datatypes.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ if (!$data || !array_key_exists('VERSION', $data) || version_compare($data['VERS
1515
die("skip Firebird Server version must be greater than or equal to 4.0.0");
1616
}
1717
?>
18-
--XLEAK--
19-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
20-
See https://github.com/FirebirdSQL/firebird/issues/7849
2118
--FILE--
2219
<?php
2320
require 'testdb.inc';

ext/pdo_firebird/tests/fb4_datatypes_params.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ if (!$data || !array_key_exists('VERSION', $data) || version_compare($data['VERS
1515
die("skip Firebird Server version must be greater than or equal to 4.0.0");
1616
}
1717
?>
18-
--XLEAK--
19-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
20-
See https://github.com/FirebirdSQL/firebird/issues/7849
2118
--FILE--
2219
<?php
2320
require 'testdb.inc';

ext/pdo_firebird/tests/get_api_version.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_Firebird: getApiVersion()
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
echo Pdo\Firebird::getApiVersion() . "\n";

ext/pdo_firebird/tests/gh10908.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ GH-10908 (Bus error with PDO Firebird on RPI with 64 bit kernel and 32 bit userl
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129

ext/pdo_firebird/tests/gh13119.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ GH-13119 (float, double value is incorrect)
44
pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129

ext/pdo_firebird/tests/gh8576.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ GH-8576 (Bad interpretation of length when char is UTF-8)
44
pdo_firebird
55
--SKIPIF--
66
<?php require 'skipif.inc'; ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129
require 'testdb.inc';

ext/pdo_firebird/tests/ignore_parammarks.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ pdo_firebird
55
--SKIPIF--
66
<?php require('skipif.inc');
77
?>
8-
--XLEAK--
9-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
10-
See https://github.com/FirebirdSQL/firebird/issues/7849
118
--FILE--
129
<?php
1310
require("testdb.inc");

ext/pdo_firebird/tests/payload_test.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ FB payload server satisfies connection attempt
33
--EXTENSIONS--
44
pdo_firebird
55
sockets
6-
--XLEAK--
7-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
8-
See https://github.com/FirebirdSQL/firebird/issues/7849
96
--FILE--
107
<?php
118
require_once "payload_server.inc";

ext/pdo_firebird/tests/pdofirebird_001.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_firebird subclass basic
44
pdo_firebird
55
--SKIPIF--
66
<?php require(__DIR__ . '/skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129

ext/pdo_firebird/tests/pdofirebird_002.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ PDO_firebird connect through PDO::connect
44
pdo_firebird
55
--SKIPIF--
66
<?php require(__DIR__ . '/skipif.inc'); ?>
7-
--XLEAK--
8-
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9-
See https://github.com/FirebirdSQL/firebird/issues/7849
107
--FILE--
118
<?php
129

0 commit comments

Comments
 (0)