Commit Graph

4825 Commits

Author SHA1 Message Date
Ilia Alshanetsky
ae1c5674cb Fixed MOPB-33-2007:PHP mail() Message ASCIIZ Byte Truncation 2007-03-27 00:13:09 +00:00
Antony Dovgal
7053b89072 MFH: fix #40915 (addcslashes unexpected behavior with binary input) 2007-03-26 10:25:41 +00:00
Nuno Lopes
88f48476f9 regenerate to fix gcov build. plus use re2c bitvectors 2007-03-23 20:28:40 +00:00
Stanislav Malyshev
0af75d6b1a fix MOPB-29 - unserialize modifier S does not calculate length correctly
# reported by Stefan Esser
2007-03-23 20:15:22 +00:00
Wez Furlong
16fc958508 fixes #40848 2007-03-18 20:20:23 +00:00
Stanislav Malyshev
a424d65e0b add test 2007-03-16 19:55:21 +00:00
Stanislav Malyshev
90eff54400 Fix UMR in array_user_key_compare() (MOPB24 by Stefan Esser) 2007-03-16 19:38:58 +00:00
Antony Dovgal
81f99c721b return false instead of empty string when -length is greater than (len - offset) 2007-03-12 23:42:26 +00:00
Antony Dovgal
165f44c9c3 MFH 2007-03-12 20:55:15 +00:00
Ilia Alshanetsky
e82c30c845 Re-added check removed by the previous patch 2007-03-10 20:07:50 +00:00
Ilia Alshanetsky
1453879587 Added additional checks for long input arrays inside
import_request_variables().

# Missing checks identified by Stefan Esser
2007-03-10 19:20:16 +00:00
Antony Dovgal
982de65f6e fix substr()
it's perfectly legal to do substr("str", 0, 1000000);
2007-03-09 10:04:59 +00:00
Antony Dovgal
c9ded196b4 fix tests 2007-03-09 09:45:14 +00:00
Ilia Alshanetsky
02fae929af Fixed bug #40754 (added substr() & substr_replace() overflow checks). 2007-03-09 01:58:34 +00:00
Ilia Alshanetsky
b3b6db3f03 Add _SESSION to checklist 2007-03-09 01:48:56 +00:00
Ilia Alshanetsky
0fa1427c6e Fixed a possible super-global overwrite inside import_request_variables().
# Reported by Stefano Di Paola
2007-03-09 01:42:20 +00:00
Stanislav Malyshev
79195bfe2e clarify checks and error messages 2007-03-08 00:47:04 +00:00
Antony Dovgal
af1843f866 MFH: fix #40752 (parse_ini_file() segfaults when a scalar setting is redeclared as an array) 2007-03-08 00:44:23 +00:00
Ilia Alshanetsky
8696c9bc89 Improved length parameter validation 2007-03-08 00:18:10 +00:00
Ilia Alshanetsky
42ff70ede8 Improved offset validation 2007-03-08 00:06:41 +00:00
Stanislav Malyshev
2625be4ed0 fix MOPB#14
# The error message seems wrong, so maybe better fix is needed
2007-03-07 18:15:46 +00:00
Ilia Alshanetsky
4a614cd6b1 malloc() -> pemalloc() 2007-03-07 00:52:40 +00:00
Ilia Alshanetsky
1ac71c4fe9 Fixed bug #40709 (array_reduce() behaves strange with one item stored
arrays).
2007-03-04 17:21:16 +00:00
Ilia Alshanetsky
e769e1b49e Fixed bug #40704 (strip_tags() does not handle single quotes correctly) 2007-03-03 15:46:29 +00:00
Nuno Lopes
f1d075a102 increase the stream_select() timeout, to make the test pass in a slow machine with valgrind 2007-03-02 18:54:13 +00:00
Ilia Alshanetsky
efad70c2cc snprintf() -> slprintf() 2007-02-27 03:28:17 +00:00
Ilia Alshanetsky
1d08a8d157 Fixed bug #40637 (Regression in strip_tags() in relation so quote handling) 2007-02-27 00:15:21 +00:00
Antony Dovgal
e07b611b10 fix folding 2007-02-26 14:11:34 +00:00
Antony Dovgal
ad8c94d8cc fix
the sprintf() -> zend_spprintf() change affected this
2007-02-26 12:08:12 +00:00
Antony Dovgal
666370d7ee add new test 2007-02-26 09:58:04 +00:00
Ilia Alshanetsky
58c167168d Revert previous commit that caused a buffer overflow (Bug #40634) 2007-02-26 02:12:36 +00:00
Ilia Alshanetsky
27c6f40783 Eliminate strncpy() and simplify code 2007-02-24 17:18:24 +00:00
Ilia Alshanetsky
34928eeeca strncpy > strlcpy 2007-02-24 17:16:23 +00:00
Ilia Alshanetsky
0763686034 strdup() can fail 2007-02-24 03:24:40 +00:00
Marcus Boerger
50ea26760d - Avoid sprintf, even when checked copy'n'paste or changes lead to errors 2007-02-24 02:17:47 +00:00
Antony Dovgal
f3a9413b28 MFH: fix #40606 (umask is not being restored when request is finished) 2007-02-23 16:22:20 +00:00
Ilia Alshanetsky
a471f75354 Simplify code by converting emalloc() + sprintf() to spprintf() 2007-02-23 00:37:36 +00:00
Nuno Lopes
d94e388d74 fix test on ultra-fast-machines and/or SOs with long time slices
# Thanks Tony
2007-02-22 11:48:14 +00:00
Dmitry Stogov
f027aef074 Fixed possible crash in putenv() on win32 2007-02-22 08:23:17 +00:00
Ilia Alshanetsky
609ecbfc37 One more strcpy. (Thanks Stas) 2007-02-22 00:44:08 +00:00
Ilia Alshanetsky
06e5bc9ea2 strcpy() elimination 2007-02-22 00:25:38 +00:00
Antony Dovgal
e1fe2c9165 MFH 2007-02-21 22:08:08 +00:00
Antony Dovgal
26fac39d5e fix test 2007-02-21 19:57:15 +00:00
Nuno Lopes
4f3150c350 use /usr/bin/nohup instead 2007-02-21 16:25:37 +00:00
Ilia Alshanetsky
5ecffe6eb5 Use strlcpy() rather then strcpy() 2007-02-21 03:59:05 +00:00
Stanislav Malyshev
462d545a63 fix putenv - if there was no previous, remove variable from environ 2007-02-21 03:03:37 +00:00
Dmitry Stogov
a3493bd3de Optimize out RINIT() 2007-02-16 16:35:04 +00:00
Dmitry Stogov
0262f05c17 Fixed return value of assert_options(ASSERT_CALLBACK) and possible crash (Andy Wharmby) 2007-02-16 13:12:10 +00:00
Ilia Alshanetsky
4a33a63ab6 Fixed bug #40465 (Ensure that all PHP elements are printed by var_dump). 2007-02-16 03:41:56 +00:00
Nuno Lopes
d446564786 Fixed bug #39322 (proc_terminate() destroys process resource) 2007-02-14 19:13:31 +00:00