Commit Graph

61452 Commits

Author SHA1 Message Date
Ilia Alshanetsky
9c834bd51c Make static analyzers happy 2011-08-08 12:10:27 +00:00
Etienne Kneuss
482e4b9d70 Fix validator for SplFileInfo constructor 2011-08-08 12:05:34 +00:00
Pierrick Charron
7f203d4385 Fix typo 2011-08-08 11:30:56 +00:00
Pierrick Charron
5035c11f0e Use snprintf to make the static analyzers happy 2011-08-08 11:19:49 +00:00
Xinchen Hui
802b871ea1 Sizeof mismatch 2011-08-08 08:49:55 +00:00
Derick Rethans
8ea0c7d6e6 - Document the new ZEND_DONT_UNLOAD_MODULES environment variable. 2011-08-08 07:42:58 +00:00
Xinchen Hui
8de80c9679 Prevented the warning about truncate int to char 2011-08-08 07:12:12 +00:00
Xinchen Hui
caedca8dd0 Make codes more clearly, and make the static analyzer silent.. 2011-08-08 06:49:17 +00:00
Pierrick Charron
6ea19be489 Use snprintf and strncat to make the static analyzers happy 2011-08-08 03:08:59 +00:00
Xinchen Hui
8bae5e220e Wrong sizeof 2011-08-08 02:33:03 +00:00
Xinchen Hui
4e97a9fc3f Remove no sense statements 2011-08-08 00:47:40 +00:00
Ilia Alshanetsky
ebefefeba8 Avoid strcpy() usage 2011-08-08 00:07:54 +00:00
Ilia Alshanetsky
04d7804aec Fixes for variety of issues identified by coverity scan 2011-08-07 23:46:00 +00:00
Gwynne Raskind
5a64b06289 possible use without init fixed 2011-08-07 18:12:52 +00:00
Derick Rethans
20936960b5 - Fixed bug #55378: binary number literal returns float number though its value
is enough small
2011-08-07 17:36:31 +00:00
Gwynne Raskind
dfe8fbca9e Front- and back-port rev 314431 (missing php.h include) 2011-08-07 17:15:40 +00:00
Gwynne Raskind
b8a2da31b1 Back- and front-port fixes for #55019 2011-08-07 17:14:14 +00:00
Gwynne Raskind
9e9c9b3430 For 5.4, fix C++-style comments. For trunk, forward-port build fix. 2011-08-07 16:31:21 +00:00
Rasmus Lerdorf
7eb5bbbf65 Fix more signed 1-bit bitfield, and let's use strlcpy/strlcat instead for these
static string copies
2011-08-07 16:10:34 +00:00
Rasmus Lerdorf
d9845c2046 More signed 1-bit bitfields 2011-08-07 15:57:35 +00:00
Rasmus Lerdorf
25cdff4d75 Signed 1-bit bitfields make no sense 2011-08-07 15:52:46 +00:00
Rasmus Lerdorf
bfffb28ebf Not an issue here, but a good habit to follow consistently. Never use strcpy/strcat. 2011-08-07 15:45:18 +00:00
Rasmus Lerdorf
97bc4c8403 Make static analyzers happy 2011-08-07 15:38:36 +00:00
Xinchen Hui
2ce3f11f4b revert -r314422
No need to check erealloc's return
2011-08-07 14:25:30 +00:00
Xinchen Hui
a35462c71c Fixed bug that may dereferenced NULL pointer before checking 2011-08-07 13:19:04 +00:00
Felipe Pena
f9ca0cacb3 - Revert r314387
(property_info.name has the mangled name)
2011-08-07 13:04:02 +00:00
Xinchen Hui
937f7fa876 Initialize variable with fixed value for avoiding compile warnings 2011-08-07 11:13:27 +00:00
Pierrick Charron
caff611cf3 Remove unused variables 2011-08-07 06:37:22 +00:00
Pierrick Charron
3751efa3dc function_name cannot be false 2011-08-07 06:19:43 +00:00
Pierrick Charron
ae1746c876 class entry is never used 2011-08-07 06:04:11 +00:00
Pierrick Charron
21232aa9f2 Pointer returned is never used 2011-08-07 05:46:31 +00:00
Xinchen Hui
ad0cfd9865 Initialize temp with 0, avoiding compile warning 2011-08-07 05:24:11 +00:00
Xinchen Hui
66527e38cc Fixed the bug that temp may depend on a uninitialzed value 2011-08-07 05:19:55 +00:00
Rasmus Lerdorf
2b874abb74 Good catch Coverity 2011-08-07 03:25:19 +00:00
Rasmus Lerdorf
c44c0490d5 Since we have fci_cache = &fci_cache_local inside that block
and fci_cache is then later used outside the block, fci_cache_local
can't be block-scoped here
2011-08-07 00:50:46 +00:00
Rasmus Lerdorf
8dc951194b I'm pretty sure you didn't mean to multiple by the size of a char* there
since that makes no sense. output is an array of char, not an array of
char*
Pierre, please review
2011-08-07 00:36:26 +00:00
Rasmus Lerdorf
50d67ef7b5 Use snprintf here instead to make the static analyzers happy. 2011-08-07 00:25:22 +00:00
Rasmus Lerdorf
c70aa9436a These naked strcpy()s scare me 2011-08-07 00:18:38 +00:00
Rasmus Lerdorf
71af9259e3 Use property_info.name here instead since *name might be free'ed at this point
@dmitry please review
2011-08-07 00:01:17 +00:00
Rasmus Lerdorf
1a9f66d6d4 Avoid a potential double-free here 2011-08-06 23:42:52 +00:00
Rasmus Lerdorf
facfed523d Not our issue, but fixing here for now and reporting upstream 2011-08-06 23:34:13 +00:00
Rasmus Lerdorf
1bc34a491c Fix another Coverity warning by initializing this to NULL prior to the strtok_r call 2011-08-06 21:10:29 +00:00
Rui Hirokawa
bc514c8339 changed mapping of 0xa5 for SJIS-mac to prevent security attack. 2011-08-06 15:23:06 +00:00
Felipe Pena
9480eace41 - Added ZEND_MOD_END macro to use in the end of zend_module_dep[] 2011-08-06 14:47:44 +00:00
Rui Hirokawa
fc3e0ff1ec fixed encoding conversion when http_input=auto. 2011-08-06 12:19:16 +00:00
Rui Hirokawa
70eb1c1267 improved error handling for ill-formed utf-8 based on the Unicode recommendation. 2011-08-06 04:25:44 +00:00
Rui Hirokawa
b3414d3c02 added ill-formed utf-8 check for 0xEDXXXX. 2011-08-06 02:22:15 +00:00
Rui Hirokawa
2bc6bcb96e updated libmbfl version to 1.3.1. 2011-08-06 01:48:45 +00:00
Felipe Pena
9c289189d3 - Added missing PHP_FE_END/ZEND_FE_END 2011-08-06 01:22:27 +00:00
Felipe Pena
65e381ba1d - Fixed bug #55313 (Number of retries not set when params specified)
patch by: kevin at kevinlocke dot name
2011-08-06 00:59:21 +00:00