Re: Re: Bug #18171 [Com]: Crashes on certain input
| From: | Pierre Joye | Date: | Mon, 27 Sep 2010 14:14:41 +0000 |
| Subject: | Re: Re: Bug #18171 [Com]: Crashes on certain input | ||
| References: | 1 2 3 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-7691@lists.php.net to get a copy of this message | ||
hi,
Please use only the web interface to reply to bugs comments.
On Mon, Sep 27, 2010 at 12:23 PM, Xavier De Cock <xdecock@gmail.com> wrote:
> MMMh, probably hitting the end of string while searching the end of the
> quoted string, i'll check the code and commit a fix this evening.
>
> Xavier.
>
> On Mon, Sep 27, 2010 at 11:19 AM, clyde dot semeleer at valtaf dot nl <
> pecl-dev@lists.php.net> wrote:
>
>> Edit report at
>> http://pecl.php.net/bugs/bug.php?id=18171&edit=1
>>
>> ID: 18171
>> Comment by: clyde dot semeleer at valtaf dot nl
>> Reported By: michal dot takacs at gmail dot com
>> Status: Open
>> Id: 18171
>> Type: Bug
>> Package: bbcode
>> Operating System: Linux CentOS 5 x64
>> PHP Version: 5.3.2
>> New Comment:
>>
>> Hi, we also have a related bug. We use the tag [url] in 2
>> different ways. For example links for specific url's we use:
>> [url="http://google.com"]google.com[/url]
>>
>> On our website we also have some blogs, we customized the
>> url tag to also accept id's for example [url=1234]some
>> text[/url]. All the above works fine.
>>
>> The problem is when a user uses [url="1234]some text[/url]
>> (which is wrong), we would expect the parser to ignore the
>> text as this is not valid bbcode. Instead we get a
>> segmentation fault error!
>>
>>
>> Previous Comments:
>> ------------------------------------------------------------------------
>>
>> [2010-08-18 23:13:54] michal dot takacs at gmail dot com
>>
>> Description:
>> ------------
>> When a [url] has another malformed nested [url] in it, it
>> crashes the PHP process upon parsing.
>>
>> Reproduce code:
>> ---------------
>> I already fixed the input in the database.
>>
>> Sorry I cannot really reproduce easily, I'd have to restore a massive
>> several - GB database. If you guys really need this, I'll do it.
>>
>> Basically the input was something like:
>>
>> [url="here was the URL"][b]Text]url=".."here it was kind of repeated]
>>
>> Expected result:
>> ----------------
>> Parsed BB code.
>>
>> Actual result:
>> --------------
>> Crash
>>
>> ------------------------------------------------------------------------
>>
>>
>> --
>> Edit this bug report at
>> http://pecl.php.net/bugs/bug.php?id=18171&edit=1
>>
>>
>
>
> --
> Xavier De Cock
> GPG Fingerprint: 93CA EE3F 9F57 5BE1 AE4A 794D 3C74 CA9E E7A5 0C1B
> GPG Id: 0xE7A50C1B
>
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org