php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44938 gettext functions crash with long strings
Submitted: 2008-05-07 20:34 UTC Modified: 2008-10-30 14:28 UTC
From: hoffie at gentoo dot org Assigned:
Status: Closed Package: Gettext related
PHP Version: 5.2.6 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hoffie at gentoo dot org
New email:
PHP Version: OS:

 

 [2008-05-07 20:34 UTC] hoffie at gentoo dot org
Description:
------------
Has this ever been addressed? 5.2.6 still crashes.

http://www.securityfocus.com/archive/1/483648/30/0/threaded

Reproduce code:
---------------
$ php -r 'dgettext(str_repeat("A",8476509),"hi");'

(See $URL for more examples)

Expected result:
----------------
No crash...

Actual result:
--------------
Segmentation fault

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-30 14:28 UTC] lstrojny@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Apr 07 16:01:28 2025 UTC