Ctype_digit causes apache to crash
| Bug #30276 | Ctype_digit causes apache to crash | ||||
|---|---|---|---|---|---|
| Submitted: | 2004-09-29 15:41 UTC | Modified: | 2004-09-30 03:24 UTC | ||
| From: | stephen_edmonds at btinternet dot com | Assigned: | |||
| Status: | Closed | Package: | Reproducible crash | ||
| PHP Version: | 4.3.9 | OS: | Windows XP (SP2) | ||
| Private report: | No | CVE-ID: | None | ||
[2004-09-29 15:41 UTC] stephen_edmonds at btinternet dot com
Description: ------------ When ctype_digit is passed a large number, it causes the apache child thread to terminate with the code "3221225477". When apache tries to restart the child thread, it crashes with the same code about 20 seconds later. The only way to stop this crash cycle is to shutdown/restart the apache server. This bug was supposedly fixed in bug #29226 - but php 4.3.9 still seems to be effected. Reproduce code: --------------- <? // WARNING - This may crash your apache server // // Notice there are no " " around the number // print ctype_digit( 1094164380 ); ?> Expected result: ---------------- true Actual result: -------------- The apache child thread will crash. When the child is re-started by apache, it will crash 20 seconds later. This will continue to happen until the apache server is shutdown or restarted.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2004-09-30 03:24 UTC] iliaa@php.net