|  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
 [2008-05-07 20:34 UTC] hoffie at gentoo dot org
Has this ever been addressed? 5.2.6 still crashes.

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

(See $URL for more examples)

Expected result:
No crash...

Actual result:
Segmentation fault


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-30 14:28 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 19:01:28 2024 UTC