php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77450 Segmentation fault 11 with multipart/form-data POST request without formData
Submitted: 2019-01-12 14:32 UTC Modified: 2021-07-18 04:22 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:1 (33.3%)
From: sinewavz at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: *Web Server problem
PHP Version: Irrelevant OS: OSX 10.14.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sinewavz at gmail dot com
New email:
PHP Version: OS:

 

 [2019-01-12 14:32 UTC] sinewavz at gmail dot com
Description:
------------
tested on php 7.28 and 7.2.9

error:
 [ERROR] The process has been signaled with signal "11".  

PHP crashes when sending post request with 'Content-Type': 'multipart/form-data' headers while attaching a plain javascript object instead of a regular formData object

Environment
MAMPP PHP 7.28 and 7.2.9
Symfony 3.4
Vue.JS

Test script:
---------------
JAVASCRIPT CODE :

const formData = { subscription: this.form}

$http.post(config.api_url + config.subscription_path + '/create', subscriptionData, {
            headers: {
                'Content-Type': 'multipart/form-data'
            }
        })


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-12 14:34 UTC] sinewavz at gmail dot com
formData = subscriptionData,

forgot to rename it
 [2019-01-14 09:27 UTC] nikic@php.net
-Status: Open +Status: Feedback
 [2019-01-14 09:27 UTC] nikic@php.net
Can you please provide the raw HTTP payload that is being sent?
 [2019-01-14 15:29 UTC] sinewavz at gmail dot com
-Status: Feedback +Status: Open
 [2019-01-14 15:29 UTC] sinewavz at gmail dot com
equest headers (534 B)	
Accept	
application/json, text/plain, */*
Accept-Encoding	
gzip, deflate
Accept-Language	
en-US,en;q=0.5
Authorization	
Bearer MWFmNDkxNWVlMDcwYTlhOWU…DlkOWRiZGMxODJkZjhi3MTY4NQ
Connection	
keep-alive
Content-Length	
13
Content-Type	
multipart/form-data
Host	
localhost:8000
Origin	
http://localhost:8080
Referer	
http://localhost:8080/admin/create-job
User-Agent	
Mozilla/5.0 (Macintosh; Intel …) Gecko/20100101 Firefox/65.0
 [2021-07-06 14:37 UTC] cmb@php.net
-Package: *Data Exchange functions +Package: *Web Server problem
 [2021-07-06 14:37 UTC] cmb@php.net
If this is still an issue with any of the actively supported PHP
versions[1], please provide the raw HTTP payload (not only the
headers).

[1] <https://www.php.net/supported-versions.php>
 [2021-07-06 14:37 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-07-18 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 02:01:29 2024 UTC