calling mcrypt_generic without first calling mcrypt_generic_init crashes
| Bug #41252 | calling mcrypt_generic without first calling mcrypt_generic_init crashes | ||||
|---|---|---|---|---|---|
| Submitted: | 2007-05-01 15:19 UTC | Modified: | 2007-05-01 16:07 UTC | ||
| From: | terrafrost@php.net | Assigned: | derick (profile) | ||
| Status: | Closed | Package: | Reproducible crash | ||
| PHP Version: | 4.4.6 | OS: | Windows XP | ||
| Private report: | No | CVE-ID: | None | ||
[2007-05-01 15:19 UTC] terrafrost@php.net
Description: ------------ Calling mcrypt_generic() without first calling mcrypt_generic_init() results in a crash on PHP 4.4.6 / Windows XP running the latest version of mcrypt from http://ftp.emini.dk/pub/php/win32/mcrypt/. PHP 5 is unaffected. Reproduce code: --------------- <?php $td = mcrypt_module_open(MCRYPT_DES, '', MCRYPT_MODE_ECB, ''); echo mcrypt_generic($td,'aaaaaaaa'); ?> Expected result: ---------------- There should be some sort of error. Here's what PHP 5.2.1 says: Warning: mcrypt_generic(): Operation disallowed prior to mcrypt_generic_init() in {filename} on line 3 Actual result: -------------- It crashes.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2007-05-01 15:39 UTC] derick@php.net
[2007-05-01 16:07 UTC] derick@php.net