Skip to content

Commit

Permalink
ext/pdo_firebird: Add LSAN suppression for isc_attach_database() (#17544
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Girgias authored Jan 22, 2025
1 parent 387ce30 commit ad4cbf4
Show file tree
Hide file tree
Showing 46 changed files with 1 addition and 134 deletions.
1 change: 1 addition & 0 deletions .github/lsan-suppressions.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
leak:acommon::DictInfoList::elements
leak:timer_create
leak:netsnmp_init_mib_internals
leak:isc_attach_database
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/attr_datetime_format.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: attr date, time, and timestamp formats
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require("testdb.inc");
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/autocommit.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: auto commit
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
/* Part of the error messages probably vary depending on the version of Firebird,
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/autocommit_change_mode.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: change auto commit
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require("testdb.inc");
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_15604.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ Bug #15604 It is not possible to pass a NULL value as an input parameter if the
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require_once 'testdb.inc';
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_47415.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ Bug #47415 PDO_Firebird segfaults when passing lowercased column name to bindCol
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require 'testdb.inc';
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_48877.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: bug 48877 The "bindValue" and "bindParam" do not work for PDO Fire
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php

Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_53280.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: bug 53280 segfaults if query column count is less than param count
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php

Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_62024.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ Bug #62024 Cannot insert second row with null using parametrized query (Firebird
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php

Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_64037.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ Bug #64037 Firebird return wrong value for numeric field
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php

Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_72583.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: Feature 72583 Fetch integers as php integers not as strings
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require 'testdb.inc';
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_72931.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: Bug 72931 Insert returning fails on Firebird 3
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require 'testdb.inc';
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_73087.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: bug 73087 segfault binding blob parameter
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require 'testdb.inc';
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_74462.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: Bug #74462 Returns only NULLs for boolean fields
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require 'testdb.inc';
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_76448.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ Bug #76448 (Stack buffer overflow in firebird_info_cb)
--EXTENSIONS--
pdo_firebird
sockets
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip 64-bit only"); ?>
--FILE--
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_76449.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ Bug #76449 (SIGSEGV in firebird_handle_doer)
--EXTENSIONS--
pdo_firebird
sockets
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require_once "payload_server.inc";
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_76450.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ Bug #76450 (SIGSEGV in firebird_stmt_execute)
--EXTENSIONS--
pdo_firebird
sockets
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require_once "payload_server.inc";
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_76452.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ Bug ##76452 (Crash while parsing blob data in firebird_fetch_blob)
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require_once "payload_server.inc";
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_76488.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: Bug #76488 Memory leak when fetching a BLOB field
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require 'testdb.inc';
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_77863.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: Bug #76488 PDO Firebird does not support boolean datatype in input
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php

Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_80521.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ Bug #80521 (Parameters with underscores no longer recognized)
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require 'testdb.inc';
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/bug_aaa.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: cursor should not be marked as opened on singleton statements
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require 'testdb.inc';
Expand Down
2 changes: 0 additions & 2 deletions ext/pdo_firebird/tests/common.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ pdo_firebird
# magic auto-configuration

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

Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/connect.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: connect/disconnect
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require("testdb.inc");
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/ddl.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: DDL/transactions
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php

Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/ddl2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: DDL/transactions 2
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require("testdb.inc");
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/dialect_1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ if (strpos(getenv('PDO_FIREBIRD_TEST_DSN'), 'dialect=1')===false) {
die('skip: PDO_FIREBIRD_TEST_DSN must contain a string "dialect=1"');
}
?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require("testdb.inc");
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/error_handle.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: error handle
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php

Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/execute.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: prepare/execute/binding
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require("testdb.inc");
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/execute_block.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ pdo_firebird
--SKIPIF--
<?php require('skipif.inc');
?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require("testdb.inc");
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/fb4_datatypes.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ if (!$data || !array_key_exists('VERSION', $data) || version_compare($data['VERS
die("skip Firebird Server version must be greater than or equal to 4.0.0");
}
?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require 'testdb.inc';
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/fb4_datatypes_params.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ if (!$data || !array_key_exists('VERSION', $data) || version_compare($data['VERS
die("skip Firebird Server version must be greater than or equal to 4.0.0");
}
?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require 'testdb.inc';
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/get_api_version.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_Firebird: getApiVersion()
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
echo Pdo\Firebird::getApiVersion() . "\n";
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/gh10908.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ GH-10908 (Bus error with PDO Firebird on RPI with 64 bit kernel and 32 bit userl
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php

Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/gh13119.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ GH-13119 (float, double value is incorrect)
pdo_firebird
--SKIPIF--
<?php require('skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php

Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/gh8576.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ GH-8576 (Bad interpretation of length when char is UTF-8)
pdo_firebird
--SKIPIF--
<?php require 'skipif.inc'; ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require 'testdb.inc';
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/ignore_parammarks.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ pdo_firebird
--SKIPIF--
<?php require('skipif.inc');
?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require("testdb.inc");
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/payload_test.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ FB payload server satisfies connection attempt
--EXTENSIONS--
pdo_firebird
sockets
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php
require_once "payload_server.inc";
Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/pdofirebird_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_firebird subclass basic
pdo_firebird
--SKIPIF--
<?php require(__DIR__ . '/skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php

Expand Down
3 changes: 0 additions & 3 deletions ext/pdo_firebird/tests/pdofirebird_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ PDO_firebird connect through PDO::connect
pdo_firebird
--SKIPIF--
<?php require(__DIR__ . '/skipif.inc'); ?>
--XLEAK--
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
See https://github.com/FirebirdSQL/firebird/issues/7849
--FILE--
<?php

Expand Down
Loading

0 comments on commit ad4cbf4

Please sign in to comment.