Re: Null bytes in anonymous class names
| From: | Leigh | Date: | Thu, 05 Nov 2015 14:45:05 +0000 |
| Subject: | Re: Null bytes in anonymous class names | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-89081@lists.php.net to get a copy of this message | ||
On 5 November 2015 at 14:21, Niklas Keller <me@kelunik.com> wrote:
> Hello,
>
> I discovered today that anonymous class names contain a null byte right
> after "class@anonymous". I don't think class names should contain
> non-printable characters.
>
> How about removing that null byte?
>
> https://3v4l.org/QUKpV
>
>
>
> https://github.com/php/php-src/blob/da8e6ec4a5063d9f60f83f43c55bc17d015cac8b/Zend/zend_compile.c#L5207
>
> Regards, Niklas
>
It's also quite worrying that it is leaking memory addresses.