Bug #72540 [NEW]: yaml_parse_url assertion
| From: | fernando at null-life dot com | Date: | Mon, 04 Jul 2016 03:40:32 +0000 |
| Subject: | Bug #72540 [NEW]: yaml_parse_url assertion | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-202033@lists.php.net to get a copy of this message | ||
From: fernando at null-life dot com
Operating system: *
PHP version: 7.0.8
Package: Reproducible crash
Bug Type: Bug
Bug description:yaml_parse_url assertion
Description:
------------
yaml_parse_url fails with an abort when the passed stream/file is empty,
maybe an exception/error should be returned here.
Test script:
---------------
<?php
touch("x");
$v1="x"; $v2=3;
yaml_parse_url($v1, $v2);
Expected result:
----------------
no crash
Actual result:
--------------
crash
pwneable:matatetete fmunozs$ php x.php
Assertion failed: (input), function yaml_parser_set_input_string, file
api.c, line 288.
Abort trap: 6
--
Edit bug report at https://bugs.php.net/bug.php?id=72540&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72540&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72540&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72540&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72540&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72540&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72540&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72540&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72540&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72540&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72540&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72540&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72540&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72540&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72540&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72540&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72540&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72540&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72540&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72540&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72540&r=mysqlcfg