Skip to content

Segfault in exif_thumbnail when not dealing with a real file #16409

Closed
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
$stream = popen('echo 1; echo 2; rm ' . escapeshellarg($tempnam), 'r');
$fusion = proc_open(
'sed "s/^/proc open stdin:/"',
[
0 => $stream,
],
$pipes,
);
exif_thumbnail($stream, $pipes, $stream, $pipes);

PHP Version

nightly

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions