Skip to content

dba_open() can segfault for "pathless" streams #16390

Description

@YuanchengJiang

Description

The following code:

<?php
$file = 'data:text/plain;z=y;uri=eviluri;mediatype=wut?;mediatype2=hello,somedata';
$fusion = $file;
$db = dba_open($fusion, 'c', 'inifile');

Resulted in this output:

/php-src/ext/dba/dba.c:845: void php_dba_open(zend_execute_data *, zval *, _Bool): Assertion `opened_path' failed.
Aborted (core dumped)

PHP Version

nightly

Operating System

ubuntu 22.04

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions