#35692 [Opn->Fbk]: iconv_mime_decode segmentation fault

From: Date: Thu, 15 Dec 2005 21:35:49 +0000
Subject: #35692 [Opn->Fbk]: iconv_mime_decode segmentation fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90488@lists.php.net to get a copy of this message
ID: 35692 Updated by: tony2001@php.net Reported By: jgoldsmith at returnpath dot net -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: FC3 PHP Version: 5.1.1 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2005-12-15 22:30:51] jgoldsmith at returnpath dot net Description: ------------ When calling iconv_mime_decode to decode between an unrecognized charset to UTF-8, PHP throws a segmentation fault. It only happens when mode=2 ./configure --with-iconv=/usr/local/lib I would expect it to just return the original string if it doesn't recognize the charset. Reproduce code: --------------- $string = "=?ISO-8859-11?B?4L7U6MG7w9DK1Le41MDSvuPL6aHRuuCr1MPsv+DHzcPstOnHwiBEdWFsLUNvcmUgSW50ZWwoUikgWGVvbihSKSBQcm9jZXNzb3Ig48vB6A==?="; $string2 = iconv_mime_decode($string,2,'UTF-8'); var_dump($string2); Expected result: ---------------- I expect to get the original string back Actual result: -------------- Segmentation Fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35692&edit=1

« previous php.bugs (#90488) next »