|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull Requests
Pull requests: 
 HistoryAllCommentsChangesGit/SVN commits              [2018-01-08 01:42 UTC] bishop@php.net
 
-Status:      Open
+Status:      Feedback
-Assigned To:
+Assigned To: bishop
  [2018-01-08 01:42 UTC] bishop@php.net
  [2018-01-08 20:28 UTC] twratajczak at gmail dot com
  [2018-01-09 03:40 UTC] bishop@php.net
 
-Status: Feedback
+Status: Closed
  [2018-01-09 03:40 UTC] bishop@php.net
 | |||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 09:00:01 2025 UTC | 
Description: ------------ performing file operations through phar:// with filenames over MAXPATHLEN causes crash *** stack smashing detected ***: php terminated Test script: --------------- <?php $p = new Phar('/tmp/a.phar'); file_exists('phar:///tmp/a.phar/'. str_repeat("a", 4100)); // only for this test case phar.readonly=Off is required Expected result: ---------------- file_exists returning false Actual result: -------------- Program terminated with signal 6, Aborted. #0 0x00007f5960d9cf77 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0 0x00007f5960d9cf77 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 #1 0x00007f5960da05e8 in __GI_abort () at abort.c:90 #2 0x00007f5960dda4fb in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7f5960eebf10 "*** %s ***: %s terminated\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:199 #3 0x00007f5960e7808c in __GI___fortify_fail (msg=<optimized out>, msg@entry=0x7f5960eebef8 "stack smashing detected") at fortify_fail.c:37 #4 0x00007f5960e78030 in __stack_chk_fail () at stack_chk_fail.c:28 #5 0x00000000004c048f in phar_set_inode (entry=0x7fff95d1c6d0) at /home/tratajczak/Downloads/php-master-201403261230/ext/phar/phar_internal.h:542 #6 0x6161616161616161 in ?? () ...