Commit Graph

18896 Commits

Author SHA1 Message Date
Pierre Joye
dfeff9efe6 - sync with libgd.org, patch from Kees Cook 2007-02-25 02:45:06 +00:00
Rasmus Lerdorf
7b80d01aa3 Fix test 2007-02-24 22:02:16 +00:00
Ilia Alshanetsky
3588f9eed6 missing -1 2007-02-24 18:02:11 +00:00
Ilia Alshanetsky
9783f5f1f3 strncpy() -> strlcpy() 2007-02-24 18:00:56 +00:00
Ilia Alshanetsky
9651aeaf78 Pad to given length, not replace data with spaces 2007-02-24 17:57:57 +00:00
Ilia Alshanetsky
afa4b732c5 Eliminate strncpy and simplify code 2007-02-24 17:40:45 +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
0ccf1cf9ce Only do size check on create operations 2007-02-24 16:36:56 +00:00
Ilia Alshanetsky
f4a8180f65 Fixed snprintf() usage 2007-02-24 16:23:10 +00:00
Ilia Alshanetsky
a2a55daf21 Segment size validation 2007-02-24 15:50:54 +00:00
Ilia Alshanetsky
e4ff13e43e Unify validation of shm segment size inside shm_attach() 2007-02-24 15:44:43 +00:00
Ilia Alshanetsky
44aefd1ea0 Fixed test to work with new version of libtidy that strips spaces 2007-02-24 15:35:04 +00:00
Marcus Boerger
d2c343a3df - Fix spprintf usage 2007-02-24 14:33:50 +00:00
Marcus Boerger
1b1c62d708 - Make debug code really safe 2007-02-24 14:28:09 +00:00
Ilia Alshanetsky
0763686034 strdup() can fail 2007-02-24 03:24:40 +00:00
Stanislav Malyshev
698f114ddc use safe allocations 2007-02-24 03:08:05 +00:00
Ilia Alshanetsky
6223b18134 Fixed a typo 2007-02-24 02:59:58 +00:00
Stanislav Malyshev
33956fc358 fix typo 2007-02-24 02:45:24 +00:00
Stanislav Malyshev
b107f3bfbe fix typos 2007-02-24 02:43:53 +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
Stanislav Malyshev
3e262bd369 disallow negative length 2007-02-24 01:18:14 +00:00
Stanislav Malyshev
43aa661c5e increase array size to fit buffer size 2007-02-23 21:14:52 +00:00
Antony Dovgal
fa513e74ce MFH: fix leak 2007-02-23 20:51:02 +00:00
Stanislav Malyshev
9d3e446d80 use safe_emalloc 2007-02-23 20:40:55 +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
Rob Richards
7846ed2e84 fix bug #40598 (libxml segfault) 2007-02-23 11:12:49 +00:00
Pierre Joye
b5e6c78eda - #40578, fix the 2nd race condition on shutdown when the cache is freed 2007-02-23 00:58:49 +00:00
Ilia Alshanetsky
a471f75354 Simplify code by converting emalloc() + sprintf() to spprintf() 2007-02-23 00:37:36 +00:00
Antony Dovgal
e0a7362646 MFH: check for buflen (on FreeBSD _SC_GETGR_R_SIZE_MAX is not implemented)
patch by stas at FreeBSD dot org
2007-02-22 23:40:39 +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
Stanislav Malyshev
2a019a14bf use snprintf 2007-02-21 21:08:58 +00:00
Antony Dovgal
26fac39d5e fix test 2007-02-21 19:57:15 +00:00
Antony Dovgal
7255b4b953 fix tests on AIX 2007-02-21 19:52:20 +00:00
Antony Dovgal
905491d6c9 wrong string len 2007-02-21 19:36:20 +00:00
Antony Dovgal
d162a8fb9e add test for 64bit arch 2007-02-21 19:35:15 +00:00
Antony Dovgal
a2a682975c fix test 2007-02-21 19:27:37 +00:00
Antony Dovgal
22a866818b fix test 2007-02-21 19:22:28 +00:00
Nuno Lopes
4f3150c350 use /usr/bin/nohup instead 2007-02-21 16:25:37 +00:00
Nuno Lopes
6be4ea4d97 fix gcov build (#line stuff) 2007-02-21 16:08:18 +00:00
Antony Dovgal
94bab7b206 MFH: fix #40578 (imagettftext() multithreading issue) 2007-02-21 15:00:26 +00:00
Antony Dovgal
bccae9a134 MFH: fix #40576 (double values are truncated to 6 decimal digits when encoding) 2007-02-21 14:25:27 +00:00
Ilia Alshanetsky
6b253ae064 Improve redirect validation 2007-02-21 04:29:15 +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
Stanislav Malyshev
31a325823a Cosmetic fix - safe_emalloc(nmemb, size, offset) 2007-02-21 01:13:44 +00:00
Stanislav Malyshev
a72041406b CreateInstance requires BSTR (should fix #33188) 2007-02-21 01:11:11 +00:00
Stanislav Malyshev
47e06ea821 fix unallocated free 2007-02-20 20:30:36 +00:00
Antony Dovgal
180baf0109 MFH: fix leak and errmsg
add test
2007-02-20 14:08:43 +00:00
Antony Dovgal
e7544f28b8 MFH: fix #38406 (crash when assigning objects to SimpleXML attributes) 2007-02-20 13:22:41 +00:00
Marcus Boerger
f44b63c57f - Make stat based functions throw an exception 2007-02-20 13:08:01 +00:00
Ilia Alshanetsky
03e5b080a3 Upgraded SQLite 3 library to version 3.3.13 2007-02-20 00:09:43 +00:00
Ilia Alshanetsky
c6402df3a7 Eliminate strcat() usage. 2007-02-19 23:53:00 +00:00
Marcus Boerger
ba4cbbaf69 - Bugfix #40546: SplFileInfo::getPathInfo() throws an execption if directory is in root dir. 2007-02-19 20:34:29 +00:00
Antony Dovgal
19c517938e MFH: check SQLError() return value and output a meaningful errmsg when it fails 2007-02-19 20:22:38 +00:00
Dmitry Stogov
955d3e73e8 typo 2007-02-19 17:29:19 +00:00
Edin Kadribasic
f31b3b497d Fixed bug #40371 2007-02-19 17:26:15 +00:00
Marcus Boerger
58c77d3925 - MFH CachingIterator implements Countable 2007-02-19 16:18:24 +00:00
Edin Kadribasic
fee1ef3463 Fixed bug #36496 2007-02-19 16:03:42 +00:00
Ilia Alshanetsky
7605d10252 PQfreemem checks 2007-02-18 17:05:53 +00:00
Ilia Alshanetsky
5e274ea47d Fixed bug #40503 (json_encode() value corruption on 32bit systems with
overflown values).
2007-02-18 16:54:59 +00:00
Stanislav Malyshev
05584eb55a use safer functions, check error value 2007-02-17 01:45:52 +00:00
Stanislav Malyshev
8edc9018db use error message size 2007-02-16 18:48:53 +00:00
Stanislav Malyshev
1fd2039fdd fix snprintf size
#-1 is not needed
2007-02-16 18:32:38 +00:00
Stanislav Malyshev
f1728950fe increase hebdate buffer, use snprintf 2007-02-16 18:24:16 +00:00
Dmitry Stogov
a3493bd3de Optimize out RINIT() 2007-02-16 16:35:04 +00:00
Antony Dovgal
01058e9770 fix possible double free 2007-02-16 13:28:03 +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
Antony Dovgal
9208d250c2 MFH 2007-02-16 11:08:22 +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
Ilia Alshanetsky
ee17c54d88 Reduce stack usage & improve boundary checks 2007-02-16 03:32:06 +00:00
Nuno Lopes
14a6567f09 fix build on cygwin with windows-style EOLs 2007-02-15 20:52:50 +00:00
Dmitry Stogov
ea278e8566 Fixed memory leak 2007-02-15 17:01:29 +00:00
Dmitry Stogov
2cf92f365a Fixed bug #40467 (Partial SOAP request sent when XSD sequence or choice include minOccurs=0) 2007-02-15 14:48:12 +00:00
Ilia Alshanetsky
b997390e1d use constant 2007-02-15 01:40:36 +00:00
Ilia Alshanetsky
ed6725c695 Improved validation route for size parameter of the mcrypt_create_iv()
function.
2007-02-15 01:15:45 +00:00
Ilia Alshanetsky
f8958c466d Fixed a possible memory corruption inside mime_content_type() on a
non-existent file.
2007-02-15 00:05:42 +00:00
Derick Rethans
e254f976fb - MFH: Clarify the source of the timezone data. 2007-02-14 19:35:09 +00:00
Nuno Lopes
d446564786 Fixed bug #39322 (proc_terminate() destroys process resource) 2007-02-14 19:13:31 +00:00
Ilia Alshanetsky
fc49f98e6a Make sure p is not pointing to the start of the buffer 2007-02-13 23:55:20 +00:00
Antony Dovgal
32c2c7a510 MFH 2007-02-13 20:19:56 +00:00
Ilia Alshanetsky
2e35bdc5e9 Fixed a memory leak inside imap_utf8() 2007-02-13 20:12:52 +00:00
Nuno Lopes
9cc85b6030 Fixed bug #34794 (proc_close() hangs when used with two processes) 2007-02-13 19:53:42 +00:00
Nuno Lopes
3d65d6d8d9 Fixed bug #37799 (ftp_ssl_connect() falls back to non-ssl connection) 2007-02-13 18:29:10 +00:00
Antony Dovgal
dc9e17faf3 fix #40455 (proc_open() uses wrong commandline when safe_mode_exec_dir is set) 2007-02-13 15:55:45 +00:00
Antony Dovgal
29a9ba9639 new/improved tests 2007-02-13 12:59:53 +00:00
Antony Dovgal
60c435df5e MFH 2007-02-13 12:56:36 +00:00
Ilia Alshanetsky
103b8c33c0 Fixed bug #40432 (strip_tags() fails with greater than in attribute). 2007-02-13 02:16:22 +00:00
Marcus Boerger
e19f55bb82 - MFH Drop useless stuff 2007-02-13 00:32:32 +00:00
Marcus Boerger
5026a9fd83 - MFH Add new example 2007-02-13 00:19:00 +00:00
Antony Dovgal
2c31b1e194 fix #40451 (addAttribute() may crash when used with non-existent child node) 2007-02-12 21:06:29 +00:00
Antony Dovgal
cce7545d18 upgrade to new parameter parsing API
+ mostly ws/cs fixes, sort of MFH
2007-02-12 20:40:11 +00:00
Antony Dovgal
511463854b MFH: fix #40109 (iptcembed fails on non-jfif jpegs) 2007-02-12 20:30:52 +00:00
Antony Dovgal
634615cd42 MFH: fix tests 2007-02-12 14:49:05 +00:00
Antony Dovgal
796080d8c4 MFH: add separate IPv6 test 2007-02-12 14:43:00 +00:00
Antony Dovgal
b877bb70de MFH: fix pcre tests 2007-02-12 14:22:19 +00:00