The_Arhitect Posted February 3, 2012 Report Posted February 3, 2012 PHP 5.4SVN-2012-02-03 htmlspecialchars/entities Buffer OverflowFrom: cataphractOperating system: AnyPHP version: 5.4SVN-2012-02-03 (SVN)Package: Reproducible crashBug Type: BugBug description:Buffer overflow on htmlspecialchars/entities with $double=falseDescription:------------Long entities can cause a buffer overflow because the loop only guarantees40 bytes available in beginning.Test script:---------------<?phpechohtmlspecialchars('"""""""""""""""""""""""""""""""""""""""""""""',ENT_QUOTES, 'UTF-8', false), "\n";Sursa: PHP 5.4SVN-2012-02-03 htmlspecialchars/entities Buffer Overflow Quote
Nytro Posted February 4, 2012 Report Posted February 4, 2012 Uhuuu, arata bine. Problema e acel UTF-8, ca nu cred ca e extrem de folosit Quote