/src/php-src/Zend/zend_multiply.h
Line | Count | Source |
1 | | /* |
2 | | +----------------------------------------------------------------------+ |
3 | | | Zend Engine | |
4 | | +----------------------------------------------------------------------+ |
5 | | | Copyright © Zend Technologies Ltd., a subsidiary company of | |
6 | | | Perforce Software, Inc., and Contributors. | |
7 | | +----------------------------------------------------------------------+ |
8 | | | This source file is subject to the Modified BSD License that is | |
9 | | | bundled with this package in the file LICENSE, and is available | |
10 | | | through the World Wide Web at <https://www.php.net/license/>. | |
11 | | | | |
12 | | | SPDX-License-Identifier: BSD-3-Clause | |
13 | | +----------------------------------------------------------------------+ |
14 | | | Authors: Sascha Schumann <sascha@schumann.cx> | |
15 | | | Ard Biesheuvel <ard.biesheuvel@linaro.org> | |
16 | | +----------------------------------------------------------------------+ |
17 | | */ |
18 | | |
19 | | #include "zend_portability.h" |
20 | | |
21 | | #ifndef ZEND_MULTIPLY_H |
22 | | #define ZEND_MULTIPLY_H |
23 | | |
24 | | #if defined(PHP_HAVE_BUILTIN_SMULL_OVERFLOW) && SIZEOF_LONG == SIZEOF_ZEND_LONG |
25 | | |
26 | 0 | #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \ |
27 | 0 | long __tmpvar; \ |
28 | 0 | if (((usedval) = __builtin_smull_overflow((a), (b), &__tmpvar))) { \ |
29 | 0 | (dval) = (double) (a) * (double) (b); \ |
30 | 0 | } \ |
31 | 0 | else (lval) = __tmpvar; \ |
32 | 0 | } while (0) |
33 | | |
34 | | #elif defined(PHP_HAVE_BUILTIN_SMULLL_OVERFLOW) && SIZEOF_LONG_LONG == SIZEOF_ZEND_LONG |
35 | | |
36 | | #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \ |
37 | | long long __tmpvar; \ |
38 | | if (((usedval) = __builtin_smulll_overflow((a), (b), &__tmpvar))) { \ |
39 | | (dval) = (double) (a) * (double) (b); \ |
40 | | } \ |
41 | | else (lval) = __tmpvar; \ |
42 | | } while (0) |
43 | | |
44 | | #elif (defined(__i386__) || defined(__x86_64__)) && defined(__GNUC__) |
45 | | |
46 | | #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \ |
47 | | zend_long __tmpvar; \ |
48 | | __asm__ ("imul %3,%0\n" \ |
49 | | "adc $0,%1" \ |
50 | | : "=r"(__tmpvar),"=r"(usedval) \ |
51 | | : "0"(a), "r"(b), "1"(0)); \ |
52 | | if (usedval) (dval) = (double) (a) * (double) (b); \ |
53 | | else (lval) = __tmpvar; \ |
54 | | } while (0) |
55 | | |
56 | | #elif defined(__arm__) && defined(__GNUC__) |
57 | | |
58 | | #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \ |
59 | | zend_long __tmpvar; \ |
60 | | __asm__("smull %0, %1, %2, %3\n" \ |
61 | | "sub %1, %1, %0, asr #31" \ |
62 | | : "=r"(__tmpvar), "=r"(usedval) \ |
63 | | : "r"(a), "r"(b)); \ |
64 | | if (usedval) (dval) = (double) (a) * (double) (b); \ |
65 | | else (lval) = __tmpvar; \ |
66 | | } while (0) |
67 | | |
68 | | #elif defined(__aarch64__) && defined(__GNUC__) |
69 | | |
70 | | #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \ |
71 | | zend_long __tmpvar; \ |
72 | | __asm__("mul %0, %2, %3\n" \ |
73 | | "smulh %1, %2, %3\n" \ |
74 | | "sub %1, %1, %0, asr #63\n" \ |
75 | | : "=&r"(__tmpvar), "=&r"(usedval) \ |
76 | | : "r"(a), "r"(b)); \ |
77 | | if (usedval) (dval) = (double) (a) * (double) (b); \ |
78 | | else (lval) = __tmpvar; \ |
79 | | } while (0) |
80 | | |
81 | | #elif defined(ZEND_WIN32) && SIZEOF_LONG_LONG == SIZEOF_ZEND_LONG |
82 | | |
83 | | #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \ |
84 | | long long __tmpvar; \ |
85 | | if (((usedval) = FAILED(LongLongMult((a), (b), &__tmpvar)))) { \ |
86 | | (dval) = (double) (a) * (double) (b); \ |
87 | | } \ |
88 | | else (lval) = __tmpvar; \ |
89 | | } while (0) |
90 | | |
91 | | #elif defined(ZEND_WIN32) && SIZEOF_LONG == SIZEOF_ZEND_LONG |
92 | | |
93 | | #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \ |
94 | | long __tmpvar; \ |
95 | | if (((usedval) = FAILED(LongMult((a), (b), &__tmpvar)))) { \ |
96 | | (dval) = (double) (a) * (double) (b); \ |
97 | | } \ |
98 | | else (lval) = __tmpvar; \ |
99 | | } while (0) |
100 | | |
101 | | #elif defined(__powerpc64__) && defined(__GNUC__) |
102 | | |
103 | | #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \ |
104 | | long __low, __high; \ |
105 | | __asm__("mulld %0,%2,%3\n\t" \ |
106 | | "mulhd %1,%2,%3\n" \ |
107 | | : "=&r"(__low), "=&r"(__high) \ |
108 | | : "r"(a), "r"(b)); \ |
109 | | if ((__low >> 63) != __high) { \ |
110 | | (dval) = (double) (a) * (double) (b); \ |
111 | | (usedval) = 1; \ |
112 | | } else { \ |
113 | | (lval) = __low; \ |
114 | | (usedval) = 0; \ |
115 | | } \ |
116 | | } while (0) |
117 | | |
118 | | #elif SIZEOF_ZEND_LONG == 4 |
119 | | |
120 | | #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \ |
121 | | int64_t __result = (int64_t) (a) * (int64_t) (b); \ |
122 | | if (__result > ZEND_LONG_MAX || __result < ZEND_LONG_MIN) { \ |
123 | | (dval) = (double) __result; \ |
124 | | (usedval) = 1; \ |
125 | | } else { \ |
126 | | (lval) = (long) __result; \ |
127 | | (usedval) = 0; \ |
128 | | } \ |
129 | | } while (0) |
130 | | |
131 | | #else |
132 | | |
133 | | #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \ |
134 | | long __lres = (a) * (b); \ |
135 | | long double __dres = (long double)(a) * (long double)(b); \ |
136 | | long double __delta = (long double) __lres - __dres; \ |
137 | | if ( ((usedval) = (( __dres + __delta ) != __dres))) { \ |
138 | | (dval) = __dres; \ |
139 | | } else { \ |
140 | | (lval) = __lres; \ |
141 | | } \ |
142 | | } while (0) |
143 | | |
144 | | #endif |
145 | | |
146 | | #if defined(__GNUC__) && (defined(__native_client__) || defined(i386)) |
147 | | |
148 | | static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, bool *overflow) |
149 | | { |
150 | | size_t res = nmemb; |
151 | | size_t m_overflow = 0; |
152 | | |
153 | | if (ZEND_CONST_COND(offset == 0, 0)) { |
154 | | __asm__ ("mull %3\n\tadcl $0,%1" |
155 | | : "=&a"(res), "=&d" (m_overflow) |
156 | | : "%0"(res), |
157 | | "rm"(size) |
158 | | : "cc"); |
159 | | } else { |
160 | | __asm__ ("mull %3\n\taddl %4,%0\n\tadcl $0,%1" |
161 | | : "=&a"(res), "=&d" (m_overflow) |
162 | | : "%0"(res), |
163 | | "rm"(size), |
164 | | "rm"(offset) |
165 | | : "cc"); |
166 | | } |
167 | | |
168 | | if (UNEXPECTED(m_overflow)) { |
169 | | *overflow = 1; |
170 | | return 0; |
171 | | } |
172 | | *overflow = 0; |
173 | | return res; |
174 | | } |
175 | | |
176 | | #elif defined(__GNUC__) && defined(__x86_64__) |
177 | | |
178 | | static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, bool *overflow) |
179 | 54.2k | { |
180 | 54.2k | size_t res; |
181 | 54.2k | zend_ulong m_overflow = 0; |
182 | | |
183 | | #ifdef __ILP32__ /* x32 */ |
184 | | # define LP_SUFF "l" |
185 | | #else /* amd64 */ |
186 | 54.2k | # define LP_SUFF "q" |
187 | 54.2k | #endif |
188 | | |
189 | 54.2k | if (ZEND_CONST_COND(offset == 0, 0)) { |
190 | 54.2k | res = nmemb; |
191 | 54.2k | __asm__ ("mul" LP_SUFF " %3\n\t" |
192 | 54.2k | "adc $0,%1" |
193 | 54.2k | : "=&a"(res), "=&d" (m_overflow) |
194 | 54.2k | : "%0"(res), |
195 | 54.2k | "rm"(size) |
196 | 54.2k | : "cc"); |
197 | 54.2k | } else if (ZEND_CONST_COND(nmemb == 1, 0)) { |
198 | 0 | res = size; |
199 | 0 | __asm__ ("add %2, %0\n\t" |
200 | 0 | "adc $0,%1" |
201 | 0 | : "+r"(res), "+r" (m_overflow) |
202 | 0 | : "rm"(offset) |
203 | 0 | : "cc"); |
204 | 0 | } else { |
205 | 0 | res = nmemb; |
206 | 0 | __asm__ ("mul" LP_SUFF " %3\n\t" |
207 | 0 | "add %4,%0\n\t" |
208 | 0 | "adc $0,%1" |
209 | 0 | : "=&a"(res), "=&d" (m_overflow) |
210 | 0 | : "%0"(res), |
211 | 0 | "rm"(size), |
212 | 0 | "rm"(offset) |
213 | 0 | : "cc"); |
214 | 0 | } |
215 | 54.2k | #undef LP_SUFF |
216 | 54.2k | if (UNEXPECTED(m_overflow)) { |
217 | 0 | *overflow = 1; |
218 | 0 | return 0; |
219 | 0 | } |
220 | 54.2k | *overflow = 0; |
221 | 54.2k | return res; |
222 | 54.2k | } Unexecuted instantiation: php_date.c:zend_safe_address Unexecuted instantiation: astro.c:zend_safe_address Unexecuted instantiation: dow.c:zend_safe_address Unexecuted instantiation: parse_date.c:zend_safe_address Unexecuted instantiation: parse_tz.c:zend_safe_address Unexecuted instantiation: parse_posix.c:zend_safe_address Unexecuted instantiation: timelib.c:zend_safe_address Unexecuted instantiation: tm2unixtime.c:zend_safe_address Unexecuted instantiation: unixtime2tm.c:zend_safe_address Unexecuted instantiation: parse_iso_intervals.c:zend_safe_address Unexecuted instantiation: interval.c:zend_safe_address Unexecuted instantiation: php_pcre.c:zend_safe_address Unexecuted instantiation: exif.c:zend_safe_address Unexecuted instantiation: hash_adler32.c:zend_safe_address Unexecuted instantiation: hash_crc32.c:zend_safe_address Unexecuted instantiation: hash_fnv.c:zend_safe_address Unexecuted instantiation: hash_gost.c:zend_safe_address Unexecuted instantiation: hash_haval.c:zend_safe_address Unexecuted instantiation: hash_joaat.c:zend_safe_address Unexecuted instantiation: hash_md.c:zend_safe_address Unexecuted instantiation: hash_murmur.c:zend_safe_address Unexecuted instantiation: hash_ripemd.c:zend_safe_address Unexecuted instantiation: hash_sha_ni.c:zend_safe_address Unexecuted instantiation: hash_sha_sse2.c:zend_safe_address Unexecuted instantiation: hash_sha.c:zend_safe_address Unexecuted instantiation: hash_sha3.c:zend_safe_address Unexecuted instantiation: hash_snefru.c:zend_safe_address Unexecuted instantiation: hash_tiger.c:zend_safe_address Unexecuted instantiation: hash_whirlpool.c:zend_safe_address Unexecuted instantiation: hash_xxhash.c:zend_safe_address Unexecuted instantiation: hash.c:zend_safe_address Unexecuted instantiation: json_encoder.c:zend_safe_address Unexecuted instantiation: json_parser.tab.c:zend_safe_address Unexecuted instantiation: json_scanner.c:zend_safe_address Unexecuted instantiation: json.c:zend_safe_address Unexecuted instantiation: php_lexbor.c:zend_safe_address Unexecuted instantiation: shared_alloc_mmap.c:zend_safe_address Unexecuted instantiation: shared_alloc_posix.c:zend_safe_address Unexecuted instantiation: shared_alloc_shm.c:zend_safe_address Unexecuted instantiation: zend_accelerator_api.c:zend_safe_address Unexecuted instantiation: zend_accelerator_blacklist.c:zend_safe_address Unexecuted instantiation: zend_accelerator_debug.c:zend_safe_address Unexecuted instantiation: zend_accelerator_hash.c:zend_safe_address Unexecuted instantiation: zend_accelerator_module.c:zend_safe_address Unexecuted instantiation: zend_accelerator_util_funcs.c:zend_safe_address Unexecuted instantiation: zend_file_cache.c:zend_safe_address Unexecuted instantiation: zend_persist_calc.c:zend_safe_address Unexecuted instantiation: zend_persist.c:zend_safe_address Unexecuted instantiation: zend_shared_alloc.c:zend_safe_address Unexecuted instantiation: ZendAccelerator.c:zend_safe_address Unexecuted instantiation: ir_cfg.c:zend_safe_address Unexecuted instantiation: ir_check.c:zend_safe_address Unexecuted instantiation: ir_dump.c:zend_safe_address Unexecuted instantiation: ir_emit.c:zend_safe_address Unexecuted instantiation: ir_gcm.c:zend_safe_address Unexecuted instantiation: ir_gdb.c:zend_safe_address Unexecuted instantiation: ir_patch.c:zend_safe_address Unexecuted instantiation: ir_perf.c:zend_safe_address Unexecuted instantiation: ir_ra.c:zend_safe_address Unexecuted instantiation: ir_save.c:zend_safe_address Unexecuted instantiation: ir_sccp.c:zend_safe_address Unexecuted instantiation: ir_strtab.c:zend_safe_address Unexecuted instantiation: ir.c:zend_safe_address Unexecuted instantiation: zend_jit_vm_helpers.c:zend_safe_address Unexecuted instantiation: zend_jit.c:zend_safe_address Unexecuted instantiation: csprng.c:zend_safe_address Unexecuted instantiation: engine_mt19937.c:zend_safe_address Unexecuted instantiation: engine_pcgoneseq128xslrr64.c:zend_safe_address Unexecuted instantiation: engine_secure.c:zend_safe_address Unexecuted instantiation: engine_user.c:zend_safe_address Unexecuted instantiation: engine_xoshiro256starstar.c:zend_safe_address Unexecuted instantiation: gammasection.c:zend_safe_address Unexecuted instantiation: random.c:zend_safe_address Unexecuted instantiation: randomizer.c:zend_safe_address Unexecuted instantiation: zend_utils.c:zend_safe_address Unexecuted instantiation: php_reflection.c:zend_safe_address Unexecuted instantiation: php_spl.c:zend_safe_address Unexecuted instantiation: spl_array.c:zend_safe_address Unexecuted instantiation: spl_directory.c:zend_safe_address Unexecuted instantiation: spl_dllist.c:zend_safe_address Unexecuted instantiation: spl_exceptions.c:zend_safe_address Unexecuted instantiation: spl_fixedarray.c:zend_safe_address Unexecuted instantiation: spl_functions.c:zend_safe_address Unexecuted instantiation: spl_heap.c:zend_safe_address Unexecuted instantiation: spl_iterators.c:zend_safe_address Unexecuted instantiation: spl_observer.c:zend_safe_address Unexecuted instantiation: array.c:zend_safe_address Unexecuted instantiation: assert.c:zend_safe_address Unexecuted instantiation: base64.c:zend_safe_address Unexecuted instantiation: basic_functions.c:zend_safe_address Unexecuted instantiation: browscap.c:zend_safe_address Unexecuted instantiation: crc32_x86.c:zend_safe_address Unexecuted instantiation: crc32.c:zend_safe_address Unexecuted instantiation: credits.c:zend_safe_address Unexecuted instantiation: crypt.c:zend_safe_address Unexecuted instantiation: css.c:zend_safe_address Unexecuted instantiation: datetime.c:zend_safe_address Unexecuted instantiation: dir.c:zend_safe_address Unexecuted instantiation: dl.c:zend_safe_address Unexecuted instantiation: dns.c:zend_safe_address Unexecuted instantiation: exec.c:zend_safe_address Unexecuted instantiation: file.c:zend_safe_address Unexecuted instantiation: filestat.c:zend_safe_address Unexecuted instantiation: filters.c:zend_safe_address Unexecuted instantiation: flock_compat.c:zend_safe_address Unexecuted instantiation: formatted_print.c:zend_safe_address Unexecuted instantiation: fsock.c:zend_safe_address Unexecuted instantiation: ftok.c:zend_safe_address Unexecuted instantiation: ftp_fopen_wrapper.c:zend_safe_address Unexecuted instantiation: head.c:zend_safe_address Unexecuted instantiation: hrtime.c:zend_safe_address Unexecuted instantiation: html.c:zend_safe_address Unexecuted instantiation: http_fopen_wrapper.c:zend_safe_address Unexecuted instantiation: http.c:zend_safe_address Unexecuted instantiation: image.c:zend_safe_address Unexecuted instantiation: incomplete_class.c:zend_safe_address Unexecuted instantiation: info.c:zend_safe_address Unexecuted instantiation: iptc.c:zend_safe_address Unexecuted instantiation: levenshtein.c:zend_safe_address Unexecuted instantiation: link.c:zend_safe_address Unexecuted instantiation: mail.c:zend_safe_address Unexecuted instantiation: math.c:zend_safe_address Unexecuted instantiation: md5.c:zend_safe_address Unexecuted instantiation: metaphone.c:zend_safe_address Unexecuted instantiation: microtime.c:zend_safe_address Unexecuted instantiation: net.c:zend_safe_address Unexecuted instantiation: pack.c:zend_safe_address Unexecuted instantiation: pageinfo.c:zend_safe_address Unexecuted instantiation: password.c:zend_safe_address Unexecuted instantiation: php_fopen_wrapper.c:zend_safe_address Unexecuted instantiation: proc_open.c:zend_safe_address Unexecuted instantiation: quot_print.c:zend_safe_address Unexecuted instantiation: scanf.c:zend_safe_address Unexecuted instantiation: sha1.c:zend_safe_address Unexecuted instantiation: soundex.c:zend_safe_address Unexecuted instantiation: streamsfuncs.c:zend_safe_address Unexecuted instantiation: string.c:zend_safe_address Unexecuted instantiation: strnatcmp.c:zend_safe_address Unexecuted instantiation: syslog.c:zend_safe_address Unexecuted instantiation: type.c:zend_safe_address Unexecuted instantiation: uniqid.c:zend_safe_address Unexecuted instantiation: url_scanner_ex.c:zend_safe_address Unexecuted instantiation: url.c:zend_safe_address Unexecuted instantiation: user_filters.c:zend_safe_address Unexecuted instantiation: uuencode.c:zend_safe_address Unexecuted instantiation: var_unserializer.c:zend_safe_address Unexecuted instantiation: var.c:zend_safe_address Unexecuted instantiation: versioning.c:zend_safe_address Unexecuted instantiation: crypt_sha256.c:zend_safe_address Unexecuted instantiation: crypt_sha512.c:zend_safe_address Unexecuted instantiation: php_crypt_r.c:zend_safe_address Unexecuted instantiation: php_uri.c:zend_safe_address Unexecuted instantiation: php_uri_common.c:zend_safe_address Unexecuted instantiation: uri_parser_rfc3986.c:zend_safe_address Unexecuted instantiation: uri_parser_whatwg.c:zend_safe_address Unexecuted instantiation: uri_parser_php_parse_url.c:zend_safe_address Unexecuted instantiation: explicit_bzero.c:zend_safe_address Unexecuted instantiation: fopen_wrappers.c:zend_safe_address Unexecuted instantiation: getopt.c:zend_safe_address Unexecuted instantiation: main.c:zend_safe_address Unexecuted instantiation: network.c:zend_safe_address Unexecuted instantiation: output.c:zend_safe_address Unexecuted instantiation: php_content_types.c:zend_safe_address Unexecuted instantiation: php_ini_builder.c:zend_safe_address Unexecuted instantiation: php_ini.c:zend_safe_address Unexecuted instantiation: php_glob.c:zend_safe_address Unexecuted instantiation: php_odbc_utils.c:zend_safe_address Unexecuted instantiation: php_open_temporary_file.c:zend_safe_address Unexecuted instantiation: php_scandir.c:zend_safe_address Unexecuted instantiation: php_syslog.c:zend_safe_address Unexecuted instantiation: php_ticks.c:zend_safe_address Unexecuted instantiation: php_variables.c:zend_safe_address Unexecuted instantiation: reentrancy.c:zend_safe_address Unexecuted instantiation: rfc1867.c:zend_safe_address Unexecuted instantiation: safe_bcmp.c:zend_safe_address Unexecuted instantiation: SAPI.c:zend_safe_address Unexecuted instantiation: snprintf.c:zend_safe_address Unexecuted instantiation: spprintf.c:zend_safe_address Unexecuted instantiation: strlcat.c:zend_safe_address Unexecuted instantiation: strlcpy.c:zend_safe_address Unexecuted instantiation: cast.c:zend_safe_address Unexecuted instantiation: filter.c:zend_safe_address Unexecuted instantiation: glob_wrapper.c:zend_safe_address Unexecuted instantiation: memory.c:zend_safe_address Unexecuted instantiation: mmap.c:zend_safe_address Unexecuted instantiation: plain_wrapper.c:zend_safe_address Unexecuted instantiation: stream_errors.c:zend_safe_address Unexecuted instantiation: streams.c:zend_safe_address Unexecuted instantiation: transports.c:zend_safe_address Unexecuted instantiation: userspace.c:zend_safe_address Unexecuted instantiation: xp_socket.c:zend_safe_address Unexecuted instantiation: block_pass.c:zend_safe_address Unexecuted instantiation: compact_literals.c:zend_safe_address Unexecuted instantiation: compact_vars.c:zend_safe_address Unexecuted instantiation: dce.c:zend_safe_address Unexecuted instantiation: dfa_pass.c:zend_safe_address Unexecuted instantiation: escape_analysis.c:zend_safe_address Unexecuted instantiation: nop_removal.c:zend_safe_address Unexecuted instantiation: optimize_func_calls.c:zend_safe_address Unexecuted instantiation: optimize_temp_vars_5.c:zend_safe_address Unexecuted instantiation: pass1.c:zend_safe_address Unexecuted instantiation: pass3.c:zend_safe_address Unexecuted instantiation: sccp.c:zend_safe_address Unexecuted instantiation: scdf.c:zend_safe_address Unexecuted instantiation: zend_call_graph.c:zend_safe_address Unexecuted instantiation: zend_cfg.c:zend_safe_address Unexecuted instantiation: zend_dfg.c:zend_safe_address Unexecuted instantiation: zend_dump.c:zend_safe_address Unexecuted instantiation: zend_func_info.c:zend_safe_address Unexecuted instantiation: zend_inference.c:zend_safe_address Unexecuted instantiation: zend_optimizer.c:zend_safe_address Unexecuted instantiation: zend_ssa.c:zend_safe_address zend_alloc.c:zend_safe_address Line | Count | Source | 179 | 54.2k | { | 180 | 54.2k | size_t res; | 181 | 54.2k | zend_ulong m_overflow = 0; | 182 | | | 183 | | #ifdef __ILP32__ /* x32 */ | 184 | | # define LP_SUFF "l" | 185 | | #else /* amd64 */ | 186 | 54.2k | # define LP_SUFF "q" | 187 | 54.2k | #endif | 188 | | | 189 | 54.2k | if (ZEND_CONST_COND(offset == 0, 0)) { | 190 | 54.2k | res = nmemb; | 191 | 54.2k | __asm__ ("mul" LP_SUFF " %3\n\t" | 192 | 54.2k | "adc $0,%1" | 193 | 54.2k | : "=&a"(res), "=&d" (m_overflow) | 194 | 54.2k | : "%0"(res), | 195 | 54.2k | "rm"(size) | 196 | 54.2k | : "cc"); | 197 | 54.2k | } else if (ZEND_CONST_COND(nmemb == 1, 0)) { | 198 | 0 | res = size; | 199 | 0 | __asm__ ("add %2, %0\n\t" | 200 | 0 | "adc $0,%1" | 201 | 0 | : "+r"(res), "+r" (m_overflow) | 202 | 0 | : "rm"(offset) | 203 | 0 | : "cc"); | 204 | 0 | } else { | 205 | 0 | res = nmemb; | 206 | 0 | __asm__ ("mul" LP_SUFF " %3\n\t" | 207 | 0 | "add %4,%0\n\t" | 208 | 0 | "adc $0,%1" | 209 | 0 | : "=&a"(res), "=&d" (m_overflow) | 210 | 0 | : "%0"(res), | 211 | 0 | "rm"(size), | 212 | 0 | "rm"(offset) | 213 | 0 | : "cc"); | 214 | 0 | } | 215 | 54.2k | #undef LP_SUFF | 216 | 54.2k | if (UNEXPECTED(m_overflow)) { | 217 | 0 | *overflow = 1; | 218 | 0 | return 0; | 219 | 0 | } | 220 | 54.2k | *overflow = 0; | 221 | 54.2k | return res; | 222 | 54.2k | } |
Unexecuted instantiation: zend_API.c:zend_safe_address Unexecuted instantiation: zend_ast.c:zend_safe_address Unexecuted instantiation: zend_attributes.c:zend_safe_address Unexecuted instantiation: zend_autoload.c:zend_safe_address Unexecuted instantiation: zend_builtin_functions.c:zend_safe_address Unexecuted instantiation: zend_call_stack.c:zend_safe_address Unexecuted instantiation: zend_closures.c:zend_safe_address Unexecuted instantiation: zend_compile.c:zend_safe_address Unexecuted instantiation: zend_constants.c:zend_safe_address Unexecuted instantiation: zend_cpuinfo.c:zend_safe_address Unexecuted instantiation: zend_default_classes.c:zend_safe_address Unexecuted instantiation: zend_dtrace.c:zend_safe_address Unexecuted instantiation: zend_enum.c:zend_safe_address Unexecuted instantiation: zend_exceptions.c:zend_safe_address Unexecuted instantiation: zend_execute_API.c:zend_safe_address Unexecuted instantiation: zend_execute.c:zend_safe_address Unexecuted instantiation: zend_extensions.c:zend_safe_address Unexecuted instantiation: zend_fibers.c:zend_safe_address Unexecuted instantiation: zend_float.c:zend_safe_address Unexecuted instantiation: zend_gc.c:zend_safe_address Unexecuted instantiation: zend_gdb.c:zend_safe_address Unexecuted instantiation: zend_generators.c:zend_safe_address Unexecuted instantiation: zend_hash.c:zend_safe_address Unexecuted instantiation: zend_highlight.c:zend_safe_address Unexecuted instantiation: zend_hrtime.c:zend_safe_address Unexecuted instantiation: zend_inheritance.c:zend_safe_address Unexecuted instantiation: zend_ini_parser.c:zend_safe_address Unexecuted instantiation: zend_ini_scanner.c:zend_safe_address Unexecuted instantiation: zend_ini.c:zend_safe_address Unexecuted instantiation: zend_interfaces.c:zend_safe_address Unexecuted instantiation: zend_iterators.c:zend_safe_address Unexecuted instantiation: zend_language_parser.c:zend_safe_address Unexecuted instantiation: zend_language_scanner.c:zend_safe_address Unexecuted instantiation: zend_lazy_objects.c:zend_safe_address Unexecuted instantiation: zend_list.c:zend_safe_address Unexecuted instantiation: zend_llist.c:zend_safe_address Unexecuted instantiation: zend_multibyte.c:zend_safe_address Unexecuted instantiation: zend_object_handlers.c:zend_safe_address Unexecuted instantiation: zend_objects_API.c:zend_safe_address Unexecuted instantiation: zend_objects.c:zend_safe_address Unexecuted instantiation: zend_observer.c:zend_safe_address Unexecuted instantiation: zend_opcode.c:zend_safe_address Unexecuted instantiation: zend_operators.c:zend_safe_address Unexecuted instantiation: zend_property_hooks.c:zend_safe_address Unexecuted instantiation: zend_ptr_stack.c:zend_safe_address Unexecuted instantiation: zend_signal.c:zend_safe_address Unexecuted instantiation: zend_smart_str.c:zend_safe_address Unexecuted instantiation: zend_sort.c:zend_safe_address Unexecuted instantiation: zend_stack.c:zend_safe_address Unexecuted instantiation: zend_stream.c:zend_safe_address Unexecuted instantiation: zend_string.c:zend_safe_address Unexecuted instantiation: zend_strtod.c:zend_safe_address Unexecuted instantiation: zend_system_id.c:zend_safe_address Unexecuted instantiation: zend_variables.c:zend_safe_address Unexecuted instantiation: zend_virtual_cwd.c:zend_safe_address Unexecuted instantiation: zend_vm_opcodes.c:zend_safe_address Unexecuted instantiation: zend_weakrefs.c:zend_safe_address Unexecuted instantiation: zend.c:zend_safe_address Unexecuted instantiation: internal_functions_cli.c:zend_safe_address Unexecuted instantiation: fuzzer-json.c:zend_safe_address Unexecuted instantiation: fuzzer-sapi.c:zend_safe_address |
223 | | |
224 | | #elif defined(__GNUC__) && defined(__arm__) |
225 | | |
226 | | static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, bool *overflow) |
227 | | { |
228 | | size_t res; |
229 | | zend_ulong m_overflow; |
230 | | |
231 | | __asm__ ("umlal %0,%1,%2,%3" |
232 | | : "=r"(res), "=r"(m_overflow) |
233 | | : "r"(nmemb), |
234 | | "r"(size), |
235 | | "0"(offset), |
236 | | "1"(0)); |
237 | | |
238 | | if (UNEXPECTED(m_overflow)) { |
239 | | *overflow = 1; |
240 | | return 0; |
241 | | } |
242 | | *overflow = 0; |
243 | | return res; |
244 | | } |
245 | | |
246 | | #elif defined(__GNUC__) && defined(__aarch64__) |
247 | | |
248 | | static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, bool *overflow) |
249 | | { |
250 | | size_t res; |
251 | | zend_ulong m_overflow; |
252 | | |
253 | | __asm__ ("mul %0,%2,%3\n\tumulh %1,%2,%3\n\tadds %0,%0,%4\n\tadc %1,%1,xzr" |
254 | | : "=&r"(res), "=&r"(m_overflow) |
255 | | : "r"(nmemb), |
256 | | "r"(size), |
257 | | "r"(offset) |
258 | | : "cc"); |
259 | | |
260 | | if (UNEXPECTED(m_overflow)) { |
261 | | *overflow = 1; |
262 | | return 0; |
263 | | } |
264 | | *overflow = 0; |
265 | | return res; |
266 | | } |
267 | | |
268 | | #elif defined(__GNUC__) && defined(__powerpc64__) |
269 | | |
270 | | static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, bool *overflow) |
271 | | { |
272 | | size_t res; |
273 | | unsigned long m_overflow; |
274 | | |
275 | | __asm__ ("mulld %0,%2,%3\n\t" |
276 | | "mulhdu %1,%2,%3\n\t" |
277 | | "addc %0,%0,%4\n\t" |
278 | | "addze %1,%1\n" |
279 | | : "=&r"(res), "=&r"(m_overflow) |
280 | | : "r"(nmemb), |
281 | | "r"(size), |
282 | | "r"(offset) |
283 | | : "xer"); |
284 | | |
285 | | if (UNEXPECTED(m_overflow)) { |
286 | | *overflow = 1; |
287 | | return 0; |
288 | | } |
289 | | *overflow = 0; |
290 | | return res; |
291 | | } |
292 | | |
293 | | #elif SIZEOF_SIZE_T == 4 |
294 | | |
295 | | static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, bool *overflow) |
296 | | { |
297 | | uint64_t res = (uint64_t) nmemb * (uint64_t) size + (uint64_t) offset; |
298 | | |
299 | | if (UNEXPECTED(res > UINT64_C(0xFFFFFFFF))) { |
300 | | *overflow = 1; |
301 | | return 0; |
302 | | } |
303 | | *overflow = 0; |
304 | | return (size_t) res; |
305 | | } |
306 | | |
307 | | #elif defined(_MSC_VER) |
308 | | |
309 | | static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, bool *overflow) |
310 | | { |
311 | | size_t res; |
312 | | if (UNEXPECTED(FAILED(ULongLongMult(nmemb, size, &res)) || FAILED(ULongLongAdd(res, offset, &res)))) { |
313 | | *overflow = 1; |
314 | | return 0; |
315 | | } |
316 | | *overflow = 0; |
317 | | return res; |
318 | | } |
319 | | |
320 | | #else |
321 | | |
322 | | static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, bool *overflow) |
323 | | { |
324 | | size_t res = nmemb * size + offset; |
325 | | double _d = (double)nmemb * (double)size + (double)offset; |
326 | | double _delta = (double)res - _d; |
327 | | |
328 | | if (UNEXPECTED((_d + _delta ) != _d)) { |
329 | | *overflow = 1; |
330 | | return 0; |
331 | | } |
332 | | *overflow = 0; |
333 | | return res; |
334 | | } |
335 | | #endif |
336 | | |
337 | | static zend_always_inline size_t zend_safe_address_guarded(size_t nmemb, size_t size, size_t offset) |
338 | 54.2k | { |
339 | 54.2k | bool overflow; |
340 | 54.2k | size_t ret = zend_safe_address(nmemb, size, offset, &overflow); |
341 | | |
342 | 54.2k | if (UNEXPECTED(overflow)) { |
343 | 0 | zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset); |
344 | 0 | } |
345 | 54.2k | return ret; |
346 | 54.2k | } Unexecuted instantiation: php_date.c:zend_safe_address_guarded Unexecuted instantiation: astro.c:zend_safe_address_guarded Unexecuted instantiation: dow.c:zend_safe_address_guarded Unexecuted instantiation: parse_date.c:zend_safe_address_guarded Unexecuted instantiation: parse_tz.c:zend_safe_address_guarded Unexecuted instantiation: parse_posix.c:zend_safe_address_guarded Unexecuted instantiation: timelib.c:zend_safe_address_guarded Unexecuted instantiation: tm2unixtime.c:zend_safe_address_guarded Unexecuted instantiation: unixtime2tm.c:zend_safe_address_guarded Unexecuted instantiation: parse_iso_intervals.c:zend_safe_address_guarded Unexecuted instantiation: interval.c:zend_safe_address_guarded Unexecuted instantiation: php_pcre.c:zend_safe_address_guarded Unexecuted instantiation: exif.c:zend_safe_address_guarded Unexecuted instantiation: hash_adler32.c:zend_safe_address_guarded Unexecuted instantiation: hash_crc32.c:zend_safe_address_guarded Unexecuted instantiation: hash_fnv.c:zend_safe_address_guarded Unexecuted instantiation: hash_gost.c:zend_safe_address_guarded Unexecuted instantiation: hash_haval.c:zend_safe_address_guarded Unexecuted instantiation: hash_joaat.c:zend_safe_address_guarded Unexecuted instantiation: hash_md.c:zend_safe_address_guarded Unexecuted instantiation: hash_murmur.c:zend_safe_address_guarded Unexecuted instantiation: hash_ripemd.c:zend_safe_address_guarded Unexecuted instantiation: hash_sha_ni.c:zend_safe_address_guarded Unexecuted instantiation: hash_sha_sse2.c:zend_safe_address_guarded Unexecuted instantiation: hash_sha.c:zend_safe_address_guarded Unexecuted instantiation: hash_sha3.c:zend_safe_address_guarded Unexecuted instantiation: hash_snefru.c:zend_safe_address_guarded Unexecuted instantiation: hash_tiger.c:zend_safe_address_guarded Unexecuted instantiation: hash_whirlpool.c:zend_safe_address_guarded Unexecuted instantiation: hash_xxhash.c:zend_safe_address_guarded Unexecuted instantiation: hash.c:zend_safe_address_guarded Unexecuted instantiation: json_encoder.c:zend_safe_address_guarded Unexecuted instantiation: json_parser.tab.c:zend_safe_address_guarded Unexecuted instantiation: json_scanner.c:zend_safe_address_guarded Unexecuted instantiation: json.c:zend_safe_address_guarded Unexecuted instantiation: php_lexbor.c:zend_safe_address_guarded Unexecuted instantiation: shared_alloc_mmap.c:zend_safe_address_guarded Unexecuted instantiation: shared_alloc_posix.c:zend_safe_address_guarded Unexecuted instantiation: shared_alloc_shm.c:zend_safe_address_guarded Unexecuted instantiation: zend_accelerator_api.c:zend_safe_address_guarded Unexecuted instantiation: zend_accelerator_blacklist.c:zend_safe_address_guarded Unexecuted instantiation: zend_accelerator_debug.c:zend_safe_address_guarded Unexecuted instantiation: zend_accelerator_hash.c:zend_safe_address_guarded Unexecuted instantiation: zend_accelerator_module.c:zend_safe_address_guarded Unexecuted instantiation: zend_accelerator_util_funcs.c:zend_safe_address_guarded Unexecuted instantiation: zend_file_cache.c:zend_safe_address_guarded Unexecuted instantiation: zend_persist_calc.c:zend_safe_address_guarded Unexecuted instantiation: zend_persist.c:zend_safe_address_guarded Unexecuted instantiation: zend_shared_alloc.c:zend_safe_address_guarded Unexecuted instantiation: ZendAccelerator.c:zend_safe_address_guarded Unexecuted instantiation: ir_cfg.c:zend_safe_address_guarded Unexecuted instantiation: ir_check.c:zend_safe_address_guarded Unexecuted instantiation: ir_dump.c:zend_safe_address_guarded Unexecuted instantiation: ir_emit.c:zend_safe_address_guarded Unexecuted instantiation: ir_gcm.c:zend_safe_address_guarded Unexecuted instantiation: ir_gdb.c:zend_safe_address_guarded Unexecuted instantiation: ir_patch.c:zend_safe_address_guarded Unexecuted instantiation: ir_perf.c:zend_safe_address_guarded Unexecuted instantiation: ir_ra.c:zend_safe_address_guarded Unexecuted instantiation: ir_save.c:zend_safe_address_guarded Unexecuted instantiation: ir_sccp.c:zend_safe_address_guarded Unexecuted instantiation: ir_strtab.c:zend_safe_address_guarded Unexecuted instantiation: ir.c:zend_safe_address_guarded Unexecuted instantiation: zend_jit_vm_helpers.c:zend_safe_address_guarded Unexecuted instantiation: zend_jit.c:zend_safe_address_guarded Unexecuted instantiation: csprng.c:zend_safe_address_guarded Unexecuted instantiation: engine_mt19937.c:zend_safe_address_guarded Unexecuted instantiation: engine_pcgoneseq128xslrr64.c:zend_safe_address_guarded Unexecuted instantiation: engine_secure.c:zend_safe_address_guarded Unexecuted instantiation: engine_user.c:zend_safe_address_guarded Unexecuted instantiation: engine_xoshiro256starstar.c:zend_safe_address_guarded Unexecuted instantiation: gammasection.c:zend_safe_address_guarded Unexecuted instantiation: random.c:zend_safe_address_guarded Unexecuted instantiation: randomizer.c:zend_safe_address_guarded Unexecuted instantiation: zend_utils.c:zend_safe_address_guarded Unexecuted instantiation: php_reflection.c:zend_safe_address_guarded Unexecuted instantiation: php_spl.c:zend_safe_address_guarded Unexecuted instantiation: spl_array.c:zend_safe_address_guarded Unexecuted instantiation: spl_directory.c:zend_safe_address_guarded Unexecuted instantiation: spl_dllist.c:zend_safe_address_guarded Unexecuted instantiation: spl_exceptions.c:zend_safe_address_guarded Unexecuted instantiation: spl_fixedarray.c:zend_safe_address_guarded Unexecuted instantiation: spl_functions.c:zend_safe_address_guarded Unexecuted instantiation: spl_heap.c:zend_safe_address_guarded Unexecuted instantiation: spl_iterators.c:zend_safe_address_guarded Unexecuted instantiation: spl_observer.c:zend_safe_address_guarded Unexecuted instantiation: array.c:zend_safe_address_guarded Unexecuted instantiation: assert.c:zend_safe_address_guarded Unexecuted instantiation: base64.c:zend_safe_address_guarded Unexecuted instantiation: basic_functions.c:zend_safe_address_guarded Unexecuted instantiation: browscap.c:zend_safe_address_guarded Unexecuted instantiation: crc32_x86.c:zend_safe_address_guarded Unexecuted instantiation: crc32.c:zend_safe_address_guarded Unexecuted instantiation: credits.c:zend_safe_address_guarded Unexecuted instantiation: crypt.c:zend_safe_address_guarded Unexecuted instantiation: css.c:zend_safe_address_guarded Unexecuted instantiation: datetime.c:zend_safe_address_guarded Unexecuted instantiation: dir.c:zend_safe_address_guarded Unexecuted instantiation: dl.c:zend_safe_address_guarded Unexecuted instantiation: dns.c:zend_safe_address_guarded Unexecuted instantiation: exec.c:zend_safe_address_guarded Unexecuted instantiation: file.c:zend_safe_address_guarded Unexecuted instantiation: filestat.c:zend_safe_address_guarded Unexecuted instantiation: filters.c:zend_safe_address_guarded Unexecuted instantiation: flock_compat.c:zend_safe_address_guarded Unexecuted instantiation: formatted_print.c:zend_safe_address_guarded Unexecuted instantiation: fsock.c:zend_safe_address_guarded Unexecuted instantiation: ftok.c:zend_safe_address_guarded Unexecuted instantiation: ftp_fopen_wrapper.c:zend_safe_address_guarded Unexecuted instantiation: head.c:zend_safe_address_guarded Unexecuted instantiation: hrtime.c:zend_safe_address_guarded Unexecuted instantiation: html.c:zend_safe_address_guarded Unexecuted instantiation: http_fopen_wrapper.c:zend_safe_address_guarded Unexecuted instantiation: http.c:zend_safe_address_guarded Unexecuted instantiation: image.c:zend_safe_address_guarded Unexecuted instantiation: incomplete_class.c:zend_safe_address_guarded Unexecuted instantiation: info.c:zend_safe_address_guarded Unexecuted instantiation: iptc.c:zend_safe_address_guarded Unexecuted instantiation: levenshtein.c:zend_safe_address_guarded Unexecuted instantiation: link.c:zend_safe_address_guarded Unexecuted instantiation: mail.c:zend_safe_address_guarded Unexecuted instantiation: math.c:zend_safe_address_guarded Unexecuted instantiation: md5.c:zend_safe_address_guarded Unexecuted instantiation: metaphone.c:zend_safe_address_guarded Unexecuted instantiation: microtime.c:zend_safe_address_guarded Unexecuted instantiation: net.c:zend_safe_address_guarded Unexecuted instantiation: pack.c:zend_safe_address_guarded Unexecuted instantiation: pageinfo.c:zend_safe_address_guarded Unexecuted instantiation: password.c:zend_safe_address_guarded Unexecuted instantiation: php_fopen_wrapper.c:zend_safe_address_guarded Unexecuted instantiation: proc_open.c:zend_safe_address_guarded Unexecuted instantiation: quot_print.c:zend_safe_address_guarded Unexecuted instantiation: scanf.c:zend_safe_address_guarded Unexecuted instantiation: sha1.c:zend_safe_address_guarded Unexecuted instantiation: soundex.c:zend_safe_address_guarded Unexecuted instantiation: streamsfuncs.c:zend_safe_address_guarded Unexecuted instantiation: string.c:zend_safe_address_guarded Unexecuted instantiation: strnatcmp.c:zend_safe_address_guarded Unexecuted instantiation: syslog.c:zend_safe_address_guarded Unexecuted instantiation: type.c:zend_safe_address_guarded Unexecuted instantiation: uniqid.c:zend_safe_address_guarded Unexecuted instantiation: url_scanner_ex.c:zend_safe_address_guarded Unexecuted instantiation: url.c:zend_safe_address_guarded Unexecuted instantiation: user_filters.c:zend_safe_address_guarded Unexecuted instantiation: uuencode.c:zend_safe_address_guarded Unexecuted instantiation: var_unserializer.c:zend_safe_address_guarded Unexecuted instantiation: var.c:zend_safe_address_guarded Unexecuted instantiation: versioning.c:zend_safe_address_guarded Unexecuted instantiation: crypt_sha256.c:zend_safe_address_guarded Unexecuted instantiation: crypt_sha512.c:zend_safe_address_guarded Unexecuted instantiation: php_crypt_r.c:zend_safe_address_guarded Unexecuted instantiation: php_uri.c:zend_safe_address_guarded Unexecuted instantiation: php_uri_common.c:zend_safe_address_guarded Unexecuted instantiation: uri_parser_rfc3986.c:zend_safe_address_guarded Unexecuted instantiation: uri_parser_whatwg.c:zend_safe_address_guarded Unexecuted instantiation: uri_parser_php_parse_url.c:zend_safe_address_guarded Unexecuted instantiation: explicit_bzero.c:zend_safe_address_guarded Unexecuted instantiation: fopen_wrappers.c:zend_safe_address_guarded Unexecuted instantiation: getopt.c:zend_safe_address_guarded Unexecuted instantiation: main.c:zend_safe_address_guarded Unexecuted instantiation: network.c:zend_safe_address_guarded Unexecuted instantiation: output.c:zend_safe_address_guarded Unexecuted instantiation: php_content_types.c:zend_safe_address_guarded Unexecuted instantiation: php_ini_builder.c:zend_safe_address_guarded Unexecuted instantiation: php_ini.c:zend_safe_address_guarded Unexecuted instantiation: php_glob.c:zend_safe_address_guarded Unexecuted instantiation: php_odbc_utils.c:zend_safe_address_guarded Unexecuted instantiation: php_open_temporary_file.c:zend_safe_address_guarded Unexecuted instantiation: php_scandir.c:zend_safe_address_guarded Unexecuted instantiation: php_syslog.c:zend_safe_address_guarded Unexecuted instantiation: php_ticks.c:zend_safe_address_guarded Unexecuted instantiation: php_variables.c:zend_safe_address_guarded Unexecuted instantiation: reentrancy.c:zend_safe_address_guarded Unexecuted instantiation: rfc1867.c:zend_safe_address_guarded Unexecuted instantiation: safe_bcmp.c:zend_safe_address_guarded Unexecuted instantiation: SAPI.c:zend_safe_address_guarded Unexecuted instantiation: snprintf.c:zend_safe_address_guarded Unexecuted instantiation: spprintf.c:zend_safe_address_guarded Unexecuted instantiation: strlcat.c:zend_safe_address_guarded Unexecuted instantiation: strlcpy.c:zend_safe_address_guarded Unexecuted instantiation: cast.c:zend_safe_address_guarded Unexecuted instantiation: filter.c:zend_safe_address_guarded Unexecuted instantiation: glob_wrapper.c:zend_safe_address_guarded Unexecuted instantiation: memory.c:zend_safe_address_guarded Unexecuted instantiation: mmap.c:zend_safe_address_guarded Unexecuted instantiation: plain_wrapper.c:zend_safe_address_guarded Unexecuted instantiation: stream_errors.c:zend_safe_address_guarded Unexecuted instantiation: streams.c:zend_safe_address_guarded Unexecuted instantiation: transports.c:zend_safe_address_guarded Unexecuted instantiation: userspace.c:zend_safe_address_guarded Unexecuted instantiation: xp_socket.c:zend_safe_address_guarded Unexecuted instantiation: block_pass.c:zend_safe_address_guarded Unexecuted instantiation: compact_literals.c:zend_safe_address_guarded Unexecuted instantiation: compact_vars.c:zend_safe_address_guarded Unexecuted instantiation: dce.c:zend_safe_address_guarded Unexecuted instantiation: dfa_pass.c:zend_safe_address_guarded Unexecuted instantiation: escape_analysis.c:zend_safe_address_guarded Unexecuted instantiation: nop_removal.c:zend_safe_address_guarded Unexecuted instantiation: optimize_func_calls.c:zend_safe_address_guarded Unexecuted instantiation: optimize_temp_vars_5.c:zend_safe_address_guarded Unexecuted instantiation: pass1.c:zend_safe_address_guarded Unexecuted instantiation: pass3.c:zend_safe_address_guarded Unexecuted instantiation: sccp.c:zend_safe_address_guarded Unexecuted instantiation: scdf.c:zend_safe_address_guarded Unexecuted instantiation: zend_call_graph.c:zend_safe_address_guarded Unexecuted instantiation: zend_cfg.c:zend_safe_address_guarded Unexecuted instantiation: zend_dfg.c:zend_safe_address_guarded Unexecuted instantiation: zend_dump.c:zend_safe_address_guarded Unexecuted instantiation: zend_func_info.c:zend_safe_address_guarded Unexecuted instantiation: zend_inference.c:zend_safe_address_guarded Unexecuted instantiation: zend_optimizer.c:zend_safe_address_guarded Unexecuted instantiation: zend_ssa.c:zend_safe_address_guarded zend_alloc.c:zend_safe_address_guarded Line | Count | Source | 338 | 54.2k | { | 339 | 54.2k | bool overflow; | 340 | 54.2k | size_t ret = zend_safe_address(nmemb, size, offset, &overflow); | 341 | | | 342 | 54.2k | if (UNEXPECTED(overflow)) { | 343 | 0 | zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset); | 344 | 0 | } | 345 | 54.2k | return ret; | 346 | 54.2k | } |
Unexecuted instantiation: zend_API.c:zend_safe_address_guarded Unexecuted instantiation: zend_ast.c:zend_safe_address_guarded Unexecuted instantiation: zend_attributes.c:zend_safe_address_guarded Unexecuted instantiation: zend_autoload.c:zend_safe_address_guarded Unexecuted instantiation: zend_builtin_functions.c:zend_safe_address_guarded Unexecuted instantiation: zend_call_stack.c:zend_safe_address_guarded Unexecuted instantiation: zend_closures.c:zend_safe_address_guarded Unexecuted instantiation: zend_compile.c:zend_safe_address_guarded Unexecuted instantiation: zend_constants.c:zend_safe_address_guarded Unexecuted instantiation: zend_cpuinfo.c:zend_safe_address_guarded Unexecuted instantiation: zend_default_classes.c:zend_safe_address_guarded Unexecuted instantiation: zend_dtrace.c:zend_safe_address_guarded Unexecuted instantiation: zend_enum.c:zend_safe_address_guarded Unexecuted instantiation: zend_exceptions.c:zend_safe_address_guarded Unexecuted instantiation: zend_execute_API.c:zend_safe_address_guarded Unexecuted instantiation: zend_execute.c:zend_safe_address_guarded Unexecuted instantiation: zend_extensions.c:zend_safe_address_guarded Unexecuted instantiation: zend_fibers.c:zend_safe_address_guarded Unexecuted instantiation: zend_float.c:zend_safe_address_guarded Unexecuted instantiation: zend_gc.c:zend_safe_address_guarded Unexecuted instantiation: zend_gdb.c:zend_safe_address_guarded Unexecuted instantiation: zend_generators.c:zend_safe_address_guarded Unexecuted instantiation: zend_hash.c:zend_safe_address_guarded Unexecuted instantiation: zend_highlight.c:zend_safe_address_guarded Unexecuted instantiation: zend_hrtime.c:zend_safe_address_guarded Unexecuted instantiation: zend_inheritance.c:zend_safe_address_guarded Unexecuted instantiation: zend_ini_parser.c:zend_safe_address_guarded Unexecuted instantiation: zend_ini_scanner.c:zend_safe_address_guarded Unexecuted instantiation: zend_ini.c:zend_safe_address_guarded Unexecuted instantiation: zend_interfaces.c:zend_safe_address_guarded Unexecuted instantiation: zend_iterators.c:zend_safe_address_guarded Unexecuted instantiation: zend_language_parser.c:zend_safe_address_guarded Unexecuted instantiation: zend_language_scanner.c:zend_safe_address_guarded Unexecuted instantiation: zend_lazy_objects.c:zend_safe_address_guarded Unexecuted instantiation: zend_list.c:zend_safe_address_guarded Unexecuted instantiation: zend_llist.c:zend_safe_address_guarded Unexecuted instantiation: zend_multibyte.c:zend_safe_address_guarded Unexecuted instantiation: zend_object_handlers.c:zend_safe_address_guarded Unexecuted instantiation: zend_objects_API.c:zend_safe_address_guarded Unexecuted instantiation: zend_objects.c:zend_safe_address_guarded Unexecuted instantiation: zend_observer.c:zend_safe_address_guarded Unexecuted instantiation: zend_opcode.c:zend_safe_address_guarded Unexecuted instantiation: zend_operators.c:zend_safe_address_guarded Unexecuted instantiation: zend_property_hooks.c:zend_safe_address_guarded Unexecuted instantiation: zend_ptr_stack.c:zend_safe_address_guarded Unexecuted instantiation: zend_signal.c:zend_safe_address_guarded Unexecuted instantiation: zend_smart_str.c:zend_safe_address_guarded Unexecuted instantiation: zend_sort.c:zend_safe_address_guarded Unexecuted instantiation: zend_stack.c:zend_safe_address_guarded Unexecuted instantiation: zend_stream.c:zend_safe_address_guarded Unexecuted instantiation: zend_string.c:zend_safe_address_guarded Unexecuted instantiation: zend_strtod.c:zend_safe_address_guarded Unexecuted instantiation: zend_system_id.c:zend_safe_address_guarded Unexecuted instantiation: zend_variables.c:zend_safe_address_guarded Unexecuted instantiation: zend_virtual_cwd.c:zend_safe_address_guarded Unexecuted instantiation: zend_vm_opcodes.c:zend_safe_address_guarded Unexecuted instantiation: zend_weakrefs.c:zend_safe_address_guarded Unexecuted instantiation: zend.c:zend_safe_address_guarded Unexecuted instantiation: internal_functions_cli.c:zend_safe_address_guarded Unexecuted instantiation: fuzzer-json.c:zend_safe_address_guarded Unexecuted instantiation: fuzzer-sapi.c:zend_safe_address_guarded |
347 | | |
348 | | /* A bit more generic version of the same */ |
349 | | static zend_always_inline size_t zend_safe_addmult(size_t nmemb, size_t size, size_t offset, const char *message) |
350 | 0 | { |
351 | 0 | bool overflow; |
352 | 0 | size_t ret = zend_safe_address(nmemb, size, offset, &overflow); |
353 | |
|
354 | 0 | if (UNEXPECTED(overflow)) { |
355 | 0 | zend_error_noreturn(E_ERROR, "Possible integer overflow in %s (%zu * %zu + %zu)", message, nmemb, size, offset); |
356 | 0 | } |
357 | 0 | return ret; |
358 | 0 | } Unexecuted instantiation: php_date.c:zend_safe_addmult Unexecuted instantiation: astro.c:zend_safe_addmult Unexecuted instantiation: dow.c:zend_safe_addmult Unexecuted instantiation: parse_date.c:zend_safe_addmult Unexecuted instantiation: parse_tz.c:zend_safe_addmult Unexecuted instantiation: parse_posix.c:zend_safe_addmult Unexecuted instantiation: timelib.c:zend_safe_addmult Unexecuted instantiation: tm2unixtime.c:zend_safe_addmult Unexecuted instantiation: unixtime2tm.c:zend_safe_addmult Unexecuted instantiation: parse_iso_intervals.c:zend_safe_addmult Unexecuted instantiation: interval.c:zend_safe_addmult Unexecuted instantiation: php_pcre.c:zend_safe_addmult Unexecuted instantiation: exif.c:zend_safe_addmult Unexecuted instantiation: hash_adler32.c:zend_safe_addmult Unexecuted instantiation: hash_crc32.c:zend_safe_addmult Unexecuted instantiation: hash_fnv.c:zend_safe_addmult Unexecuted instantiation: hash_gost.c:zend_safe_addmult Unexecuted instantiation: hash_haval.c:zend_safe_addmult Unexecuted instantiation: hash_joaat.c:zend_safe_addmult Unexecuted instantiation: hash_md.c:zend_safe_addmult Unexecuted instantiation: hash_murmur.c:zend_safe_addmult Unexecuted instantiation: hash_ripemd.c:zend_safe_addmult Unexecuted instantiation: hash_sha_ni.c:zend_safe_addmult Unexecuted instantiation: hash_sha_sse2.c:zend_safe_addmult Unexecuted instantiation: hash_sha.c:zend_safe_addmult Unexecuted instantiation: hash_sha3.c:zend_safe_addmult Unexecuted instantiation: hash_snefru.c:zend_safe_addmult Unexecuted instantiation: hash_tiger.c:zend_safe_addmult Unexecuted instantiation: hash_whirlpool.c:zend_safe_addmult Unexecuted instantiation: hash_xxhash.c:zend_safe_addmult Unexecuted instantiation: hash.c:zend_safe_addmult Unexecuted instantiation: json_encoder.c:zend_safe_addmult Unexecuted instantiation: json_parser.tab.c:zend_safe_addmult Unexecuted instantiation: json_scanner.c:zend_safe_addmult Unexecuted instantiation: json.c:zend_safe_addmult Unexecuted instantiation: php_lexbor.c:zend_safe_addmult Unexecuted instantiation: shared_alloc_mmap.c:zend_safe_addmult Unexecuted instantiation: shared_alloc_posix.c:zend_safe_addmult Unexecuted instantiation: shared_alloc_shm.c:zend_safe_addmult Unexecuted instantiation: zend_accelerator_api.c:zend_safe_addmult Unexecuted instantiation: zend_accelerator_blacklist.c:zend_safe_addmult Unexecuted instantiation: zend_accelerator_debug.c:zend_safe_addmult Unexecuted instantiation: zend_accelerator_hash.c:zend_safe_addmult Unexecuted instantiation: zend_accelerator_module.c:zend_safe_addmult Unexecuted instantiation: zend_accelerator_util_funcs.c:zend_safe_addmult Unexecuted instantiation: zend_file_cache.c:zend_safe_addmult Unexecuted instantiation: zend_persist_calc.c:zend_safe_addmult Unexecuted instantiation: zend_persist.c:zend_safe_addmult Unexecuted instantiation: zend_shared_alloc.c:zend_safe_addmult Unexecuted instantiation: ZendAccelerator.c:zend_safe_addmult Unexecuted instantiation: ir_cfg.c:zend_safe_addmult Unexecuted instantiation: ir_check.c:zend_safe_addmult Unexecuted instantiation: ir_dump.c:zend_safe_addmult Unexecuted instantiation: ir_emit.c:zend_safe_addmult Unexecuted instantiation: ir_gcm.c:zend_safe_addmult Unexecuted instantiation: ir_gdb.c:zend_safe_addmult Unexecuted instantiation: ir_patch.c:zend_safe_addmult Unexecuted instantiation: ir_perf.c:zend_safe_addmult Unexecuted instantiation: ir_ra.c:zend_safe_addmult Unexecuted instantiation: ir_save.c:zend_safe_addmult Unexecuted instantiation: ir_sccp.c:zend_safe_addmult Unexecuted instantiation: ir_strtab.c:zend_safe_addmult Unexecuted instantiation: ir.c:zend_safe_addmult Unexecuted instantiation: zend_jit_vm_helpers.c:zend_safe_addmult Unexecuted instantiation: zend_jit.c:zend_safe_addmult Unexecuted instantiation: csprng.c:zend_safe_addmult Unexecuted instantiation: engine_mt19937.c:zend_safe_addmult Unexecuted instantiation: engine_pcgoneseq128xslrr64.c:zend_safe_addmult Unexecuted instantiation: engine_secure.c:zend_safe_addmult Unexecuted instantiation: engine_user.c:zend_safe_addmult Unexecuted instantiation: engine_xoshiro256starstar.c:zend_safe_addmult Unexecuted instantiation: gammasection.c:zend_safe_addmult Unexecuted instantiation: random.c:zend_safe_addmult Unexecuted instantiation: randomizer.c:zend_safe_addmult Unexecuted instantiation: zend_utils.c:zend_safe_addmult Unexecuted instantiation: php_reflection.c:zend_safe_addmult Unexecuted instantiation: php_spl.c:zend_safe_addmult Unexecuted instantiation: spl_array.c:zend_safe_addmult Unexecuted instantiation: spl_directory.c:zend_safe_addmult Unexecuted instantiation: spl_dllist.c:zend_safe_addmult Unexecuted instantiation: spl_exceptions.c:zend_safe_addmult Unexecuted instantiation: spl_fixedarray.c:zend_safe_addmult Unexecuted instantiation: spl_functions.c:zend_safe_addmult Unexecuted instantiation: spl_heap.c:zend_safe_addmult Unexecuted instantiation: spl_iterators.c:zend_safe_addmult Unexecuted instantiation: spl_observer.c:zend_safe_addmult Unexecuted instantiation: array.c:zend_safe_addmult Unexecuted instantiation: assert.c:zend_safe_addmult Unexecuted instantiation: base64.c:zend_safe_addmult Unexecuted instantiation: basic_functions.c:zend_safe_addmult Unexecuted instantiation: browscap.c:zend_safe_addmult Unexecuted instantiation: crc32_x86.c:zend_safe_addmult Unexecuted instantiation: crc32.c:zend_safe_addmult Unexecuted instantiation: credits.c:zend_safe_addmult Unexecuted instantiation: crypt.c:zend_safe_addmult Unexecuted instantiation: css.c:zend_safe_addmult Unexecuted instantiation: datetime.c:zend_safe_addmult Unexecuted instantiation: dir.c:zend_safe_addmult Unexecuted instantiation: dl.c:zend_safe_addmult Unexecuted instantiation: dns.c:zend_safe_addmult Unexecuted instantiation: exec.c:zend_safe_addmult Unexecuted instantiation: file.c:zend_safe_addmult Unexecuted instantiation: filestat.c:zend_safe_addmult Unexecuted instantiation: filters.c:zend_safe_addmult Unexecuted instantiation: flock_compat.c:zend_safe_addmult Unexecuted instantiation: formatted_print.c:zend_safe_addmult Unexecuted instantiation: fsock.c:zend_safe_addmult Unexecuted instantiation: ftok.c:zend_safe_addmult Unexecuted instantiation: ftp_fopen_wrapper.c:zend_safe_addmult Unexecuted instantiation: head.c:zend_safe_addmult Unexecuted instantiation: hrtime.c:zend_safe_addmult Unexecuted instantiation: html.c:zend_safe_addmult Unexecuted instantiation: http_fopen_wrapper.c:zend_safe_addmult Unexecuted instantiation: http.c:zend_safe_addmult Unexecuted instantiation: image.c:zend_safe_addmult Unexecuted instantiation: incomplete_class.c:zend_safe_addmult Unexecuted instantiation: info.c:zend_safe_addmult Unexecuted instantiation: iptc.c:zend_safe_addmult Unexecuted instantiation: levenshtein.c:zend_safe_addmult Unexecuted instantiation: link.c:zend_safe_addmult Unexecuted instantiation: mail.c:zend_safe_addmult Unexecuted instantiation: math.c:zend_safe_addmult Unexecuted instantiation: md5.c:zend_safe_addmult Unexecuted instantiation: metaphone.c:zend_safe_addmult Unexecuted instantiation: microtime.c:zend_safe_addmult Unexecuted instantiation: net.c:zend_safe_addmult Unexecuted instantiation: pack.c:zend_safe_addmult Unexecuted instantiation: pageinfo.c:zend_safe_addmult Unexecuted instantiation: password.c:zend_safe_addmult Unexecuted instantiation: php_fopen_wrapper.c:zend_safe_addmult Unexecuted instantiation: proc_open.c:zend_safe_addmult Unexecuted instantiation: quot_print.c:zend_safe_addmult Unexecuted instantiation: scanf.c:zend_safe_addmult Unexecuted instantiation: sha1.c:zend_safe_addmult Unexecuted instantiation: soundex.c:zend_safe_addmult Unexecuted instantiation: streamsfuncs.c:zend_safe_addmult Unexecuted instantiation: string.c:zend_safe_addmult Unexecuted instantiation: strnatcmp.c:zend_safe_addmult Unexecuted instantiation: syslog.c:zend_safe_addmult Unexecuted instantiation: type.c:zend_safe_addmult Unexecuted instantiation: uniqid.c:zend_safe_addmult Unexecuted instantiation: url_scanner_ex.c:zend_safe_addmult Unexecuted instantiation: url.c:zend_safe_addmult Unexecuted instantiation: user_filters.c:zend_safe_addmult Unexecuted instantiation: uuencode.c:zend_safe_addmult Unexecuted instantiation: var_unserializer.c:zend_safe_addmult Unexecuted instantiation: var.c:zend_safe_addmult Unexecuted instantiation: versioning.c:zend_safe_addmult Unexecuted instantiation: crypt_sha256.c:zend_safe_addmult Unexecuted instantiation: crypt_sha512.c:zend_safe_addmult Unexecuted instantiation: php_crypt_r.c:zend_safe_addmult Unexecuted instantiation: php_uri.c:zend_safe_addmult Unexecuted instantiation: php_uri_common.c:zend_safe_addmult Unexecuted instantiation: uri_parser_rfc3986.c:zend_safe_addmult Unexecuted instantiation: uri_parser_whatwg.c:zend_safe_addmult Unexecuted instantiation: uri_parser_php_parse_url.c:zend_safe_addmult Unexecuted instantiation: explicit_bzero.c:zend_safe_addmult Unexecuted instantiation: fopen_wrappers.c:zend_safe_addmult Unexecuted instantiation: getopt.c:zend_safe_addmult Unexecuted instantiation: main.c:zend_safe_addmult Unexecuted instantiation: network.c:zend_safe_addmult Unexecuted instantiation: output.c:zend_safe_addmult Unexecuted instantiation: php_content_types.c:zend_safe_addmult Unexecuted instantiation: php_ini_builder.c:zend_safe_addmult Unexecuted instantiation: php_ini.c:zend_safe_addmult Unexecuted instantiation: php_glob.c:zend_safe_addmult Unexecuted instantiation: php_odbc_utils.c:zend_safe_addmult Unexecuted instantiation: php_open_temporary_file.c:zend_safe_addmult Unexecuted instantiation: php_scandir.c:zend_safe_addmult Unexecuted instantiation: php_syslog.c:zend_safe_addmult Unexecuted instantiation: php_ticks.c:zend_safe_addmult Unexecuted instantiation: php_variables.c:zend_safe_addmult Unexecuted instantiation: reentrancy.c:zend_safe_addmult Unexecuted instantiation: rfc1867.c:zend_safe_addmult Unexecuted instantiation: safe_bcmp.c:zend_safe_addmult Unexecuted instantiation: SAPI.c:zend_safe_addmult Unexecuted instantiation: snprintf.c:zend_safe_addmult Unexecuted instantiation: spprintf.c:zend_safe_addmult Unexecuted instantiation: strlcat.c:zend_safe_addmult Unexecuted instantiation: strlcpy.c:zend_safe_addmult Unexecuted instantiation: cast.c:zend_safe_addmult Unexecuted instantiation: filter.c:zend_safe_addmult Unexecuted instantiation: glob_wrapper.c:zend_safe_addmult Unexecuted instantiation: memory.c:zend_safe_addmult Unexecuted instantiation: mmap.c:zend_safe_addmult Unexecuted instantiation: plain_wrapper.c:zend_safe_addmult Unexecuted instantiation: stream_errors.c:zend_safe_addmult Unexecuted instantiation: streams.c:zend_safe_addmult Unexecuted instantiation: transports.c:zend_safe_addmult Unexecuted instantiation: userspace.c:zend_safe_addmult Unexecuted instantiation: xp_socket.c:zend_safe_addmult Unexecuted instantiation: block_pass.c:zend_safe_addmult Unexecuted instantiation: compact_literals.c:zend_safe_addmult Unexecuted instantiation: compact_vars.c:zend_safe_addmult Unexecuted instantiation: dce.c:zend_safe_addmult Unexecuted instantiation: dfa_pass.c:zend_safe_addmult Unexecuted instantiation: escape_analysis.c:zend_safe_addmult Unexecuted instantiation: nop_removal.c:zend_safe_addmult Unexecuted instantiation: optimize_func_calls.c:zend_safe_addmult Unexecuted instantiation: optimize_temp_vars_5.c:zend_safe_addmult Unexecuted instantiation: pass1.c:zend_safe_addmult Unexecuted instantiation: pass3.c:zend_safe_addmult Unexecuted instantiation: sccp.c:zend_safe_addmult Unexecuted instantiation: scdf.c:zend_safe_addmult Unexecuted instantiation: zend_call_graph.c:zend_safe_addmult Unexecuted instantiation: zend_cfg.c:zend_safe_addmult Unexecuted instantiation: zend_dfg.c:zend_safe_addmult Unexecuted instantiation: zend_dump.c:zend_safe_addmult Unexecuted instantiation: zend_func_info.c:zend_safe_addmult Unexecuted instantiation: zend_inference.c:zend_safe_addmult Unexecuted instantiation: zend_optimizer.c:zend_safe_addmult Unexecuted instantiation: zend_ssa.c:zend_safe_addmult Unexecuted instantiation: zend_alloc.c:zend_safe_addmult Unexecuted instantiation: zend_API.c:zend_safe_addmult Unexecuted instantiation: zend_ast.c:zend_safe_addmult Unexecuted instantiation: zend_attributes.c:zend_safe_addmult Unexecuted instantiation: zend_autoload.c:zend_safe_addmult Unexecuted instantiation: zend_builtin_functions.c:zend_safe_addmult Unexecuted instantiation: zend_call_stack.c:zend_safe_addmult Unexecuted instantiation: zend_closures.c:zend_safe_addmult Unexecuted instantiation: zend_compile.c:zend_safe_addmult Unexecuted instantiation: zend_constants.c:zend_safe_addmult Unexecuted instantiation: zend_cpuinfo.c:zend_safe_addmult Unexecuted instantiation: zend_default_classes.c:zend_safe_addmult Unexecuted instantiation: zend_dtrace.c:zend_safe_addmult Unexecuted instantiation: zend_enum.c:zend_safe_addmult Unexecuted instantiation: zend_exceptions.c:zend_safe_addmult Unexecuted instantiation: zend_execute_API.c:zend_safe_addmult Unexecuted instantiation: zend_execute.c:zend_safe_addmult Unexecuted instantiation: zend_extensions.c:zend_safe_addmult Unexecuted instantiation: zend_fibers.c:zend_safe_addmult Unexecuted instantiation: zend_float.c:zend_safe_addmult Unexecuted instantiation: zend_gc.c:zend_safe_addmult Unexecuted instantiation: zend_gdb.c:zend_safe_addmult Unexecuted instantiation: zend_generators.c:zend_safe_addmult Unexecuted instantiation: zend_hash.c:zend_safe_addmult Unexecuted instantiation: zend_highlight.c:zend_safe_addmult Unexecuted instantiation: zend_hrtime.c:zend_safe_addmult Unexecuted instantiation: zend_inheritance.c:zend_safe_addmult Unexecuted instantiation: zend_ini_parser.c:zend_safe_addmult Unexecuted instantiation: zend_ini_scanner.c:zend_safe_addmult Unexecuted instantiation: zend_ini.c:zend_safe_addmult Unexecuted instantiation: zend_interfaces.c:zend_safe_addmult Unexecuted instantiation: zend_iterators.c:zend_safe_addmult Unexecuted instantiation: zend_language_parser.c:zend_safe_addmult Unexecuted instantiation: zend_language_scanner.c:zend_safe_addmult Unexecuted instantiation: zend_lazy_objects.c:zend_safe_addmult Unexecuted instantiation: zend_list.c:zend_safe_addmult Unexecuted instantiation: zend_llist.c:zend_safe_addmult Unexecuted instantiation: zend_multibyte.c:zend_safe_addmult Unexecuted instantiation: zend_object_handlers.c:zend_safe_addmult Unexecuted instantiation: zend_objects_API.c:zend_safe_addmult Unexecuted instantiation: zend_objects.c:zend_safe_addmult Unexecuted instantiation: zend_observer.c:zend_safe_addmult Unexecuted instantiation: zend_opcode.c:zend_safe_addmult Unexecuted instantiation: zend_operators.c:zend_safe_addmult Unexecuted instantiation: zend_property_hooks.c:zend_safe_addmult Unexecuted instantiation: zend_ptr_stack.c:zend_safe_addmult Unexecuted instantiation: zend_signal.c:zend_safe_addmult Unexecuted instantiation: zend_smart_str.c:zend_safe_addmult Unexecuted instantiation: zend_sort.c:zend_safe_addmult Unexecuted instantiation: zend_stack.c:zend_safe_addmult Unexecuted instantiation: zend_stream.c:zend_safe_addmult Unexecuted instantiation: zend_string.c:zend_safe_addmult Unexecuted instantiation: zend_strtod.c:zend_safe_addmult Unexecuted instantiation: zend_system_id.c:zend_safe_addmult Unexecuted instantiation: zend_variables.c:zend_safe_addmult Unexecuted instantiation: zend_virtual_cwd.c:zend_safe_addmult Unexecuted instantiation: zend_vm_opcodes.c:zend_safe_addmult Unexecuted instantiation: zend_weakrefs.c:zend_safe_addmult Unexecuted instantiation: zend.c:zend_safe_addmult Unexecuted instantiation: internal_functions_cli.c:zend_safe_addmult Unexecuted instantiation: fuzzer-json.c:zend_safe_addmult Unexecuted instantiation: fuzzer-sapi.c:zend_safe_addmult |
359 | | |
360 | | #endif /* ZEND_MULTIPLY_H */ |