File tree 2 files changed +11
-7
lines changed 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ PHP NEWS
13
13
. Fixed bug GH-11222 (foreach by-ref may jump over keys during a rehash).
14
14
(Bob)
15
15
16
+ - CLI:
17
+ . Fixed bug GH-11246 (cli/get_set_process_title fails on MacOS). (James Lucas)
18
+
16
19
- Exif:
17
20
. Fixed bug GH-10834 (exif_read_data() cannot read smaller stream wrapper
18
21
chunk sizes). (nielsdos)
Original file line number Diff line number Diff line change @@ -169,19 +169,20 @@ char** save_ps_args(int argc, char** argv)
169
169
end_of_area = argv [i ] + strlen (argv [i ]);
170
170
}
171
171
172
+ if (!is_contiguous_area ) {
173
+ goto clobber_error ;
174
+ }
175
+
172
176
/*
173
177
* check for contiguous environ strings following argv
174
178
*/
175
179
for (i = 0 ; is_contiguous_area && (environ [i ] != NULL ); i ++ )
176
180
{
177
- if (end_of_area + 1 != environ [i ]) {
178
- is_contiguous_area = false;
181
+ if (end_of_area + 1 == environ [i ]) {
182
+ end_of_area = environ [i ] + strlen (environ [i ]);
183
+ } else {
184
+ is_contiguous_area = false;
179
185
}
180
- end_of_area = environ [i ] + strlen (environ [i ]);
181
- }
182
-
183
- if (!is_contiguous_area ) {
184
- goto clobber_error ;
185
186
}
186
187
187
188
ps_buffer = argv [0 ];
You can’t perform that action at this time.
0 commit comments