Bug #77450 [Fbk->Opn]: Segmentation fault 11 with multipart/form-data POST request without formData

From: Date: Mon, 14 Jan 2019 15:29:56 +0000
Subject: Bug #77450 [Fbk->Opn]: Segmentation fault 11 with multipart/form-data POST request without formData
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218944@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77450&edit=1

 ID:                 77450
 User updated by:    sinewavz at gmail dot com
 Reported by:        sinewavz at gmail dot com
 Summary:            Segmentation fault 11 with multipart/form-data POST
                     request without formData
-Status:             Feedback
+Status:             Open
 Type:               Bug
 Package:            *Data Exchange functions
 Operating System:   OSX 10.14.2
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[2019-01-14 09:27:59] nikic@php.net

Can you please provide the raw HTTP payload that is being sent?

------------------------------------------------------------------------
[2019-01-12 14:34:28] sinewavz at gmail dot com

formData = subscriptionData,

forgot to rename it

------------------------------------------------------------------------
[2019-01-12 14:32:41] 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'
            }
        })



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=77450&edit=1


Thread (7 messages)

« previous php.bugs (#218944) next »