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: 2019-01-14 15:29 UTC
From: sinewavz at gmail dot com Assigned:
Status: Open Package: *Data Exchange functions
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
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Mar 22 13:01:26 2019 UTC