Skip to content

Commit 1056c57

Browse files
committed
MFH: Fix Bug #54727, a re-incarnation of #26862
1 parent b60f677 commit 1056c57

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/standard/url_scanner_ex.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Generated by re2c 0.13.5 on Mon May 31 11:07:50 2010 */
1+
/* Generated by re2c 0.13.5 on Mon May 23 12:29:55 2011 */
22
#line 1 "ext/standard/url_scanner_ex.re"
33
/*
44
+----------------------------------------------------------------------+
@@ -1012,7 +1012,7 @@ static void php_url_scanner_output_handler(char *output, uint output_len, char *
10121012
ctx->result.len = 0;
10131013
smart_str_free(&ctx->buf);
10141014
} else {
1015-
*handled_output = NULL;
1015+
*handled_output = estrndup(output, *handled_output_len = output_len);
10161016
}
10171017
} else {
10181018
*handled_output = NULL;

ext/standard/url_scanner_ex.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ static void php_url_scanner_output_handler(char *output, uint output_len, char *
450450
ctx->result.len = 0;
451451
smart_str_free(&ctx->buf);
452452
} else {
453-
*handled_output = NULL;
453+
*handled_output = estrndup(output, *handled_output_len = output_len);
454454
}
455455
} else {
456456
*handled_output = NULL;

0 commit comments

Comments
 (0)