rfc:range_checks_for_64_bit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:range_checks_for_64_bit [2015/08/24 16:14] abrfc:range_checks_for_64_bit [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 3: Line 3:
   * Date: 2015-08-24   * Date: 2015-08-24
   * Author: Anatol Belski, ab@php.net   * Author: Anatol Belski, ab@php.net
-  * Status: Draft+  * Status: withdrawn
  
 ===== Introduction ===== ===== Introduction =====
Line 42: Line 42:
  
 #define ZEND_SIZE_T_INT_OVFL(size) ((size) > (size_t)INT_MAX) #define ZEND_SIZE_T_INT_OVFL(size) ((size) > (size_t)INT_MAX)
-#define ZEND_SIZE_T_UINT_OVFL(size) ((size) > (size_t)UINT_MAX)+ 
 +#if SIZEOF_INT == SIZEOF_SIZE_T 
 +# define ZEND_SIZE_T_UINT_OVFL(size) (0) 
 +#else 
 +# define ZEND_SIZE_T_UINT_OVFL(size) ((size) > (size_t)UINT_MAX) 
 +#endif
  
 </code> </code>
Line 188: Line 193:
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
-The implementation of the base functionality is trivial and can be done if the proposed strategy is accepted. Many places in the core extensions related to libxml2, openssl, tidy, etc. are obvious and can be addressed step by step already before hand+The implementation of the base functionality is trivial and can be done if the proposed strategy is accepted. Many places in the core extensions related to libxml2, openssl, tidy, etc. are obvious and will be addressed already before merging.
  
 ===== Implementation ===== ===== Implementation =====
rfc/range_checks_for_64_bit.1440432842.txt.gz · Last modified: 2017/09/22 13:28 (external edit)