Commit Graph

35504 Commits

Author SHA1 Message Date
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
1b8a85415d Fixed Bug #39396 (stream_set_blocking crashes on Win32). 2007-02-24 15:48:40 +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
24fa61e202 - Drop superflous efree 2007-02-24 14:53:50 +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
Dmitry Stogov
0caa2be91f Use poll() instead of select() if available 2007-02-24 11:20:43 +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
b415e3da5a Unfortunately, VC does not have snprintf, and sprintf_s supported only in vc2005
Fortunately, we don't need it here too badly.
2007-02-24 02:50: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
Sara Golemon
c3935671cd MFH (r-1.82): Add retry for interrupted reads and graceful handling for failed retries 2007-02-23 23:09:14 +00:00
Stanislav Malyshev
59bcd2372d use strlcat 2007-02-23 22:08:31 +00:00
Stanislav Malyshev
b40c94194f use strlcat 2007-02-23 22:05:46 +00:00
Stanislav Malyshev
4019bf5370 use snprintf 2007-02-23 21:45:00 +00:00
Stanislav Malyshev
e894206874 use snprintf 2007-02-23 21:38:25 +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
db19c74cfe BFN 2007-02-23 11:15:08 +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
Marcus Boerger
e3d786be4e - MFH Fix logic 2007-02-22 23:26:03 +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
Antony Dovgal
dfbc224555 MFH 2007-02-22 10:06:22 +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
4a95928d1d MFH: implement PHP_STREAM_FLAG_NO_CLOSE and avoid hacks 2007-02-21 21:57:21 +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