Jump to content
The_Arhitect

PHP 5.4SVN-2012-02-03 htmlspecialchars/entities Buffer Overflow

Recommended Posts

Posted

PHP 5.4SVN-2012-02-03 htmlspecialchars/entities Buffer Overflow

From:             cataphract
Operating system: Any
PHP version: 5.4SVN-2012-02-03 (SVN)
Package: Reproducible crash
Bug Type: Bug
Bug description:Buffer overflow on htmlspecialchars/entities with $double=false
Description:
------------
Long entities can cause a buffer overflow because the loop only guarantees
40 bytes available in beginning.
Test script:
---------------
<?php
echo
htmlspecialchars('"""""""""""""""""""""""""""""""""""""""""""""',
ENT_QUOTES, 'UTF-8', false), "\n";

Sursa: PHP 5.4SVN-2012-02-03 htmlspecialchars/entities Buffer Overflow

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...