File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ PHP NEWS
11
11
- SPL:
12
12
. Fixed bug #73471 (PHP freezes with AppendIterator). (jhdxr)
13
13
14
+ - Wddx:
15
+ . Fixed bug #73173 (huge memleak when wddx_unserialize).
16
+ (tloi at fortinet dot com)
17
+
14
18
- zlib:
15
19
. Fixed bug #73944 (dictionary option of inflate_init() does not work).
16
20
(wapmorgan)
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #73173: huge memleak when wddx_unserialize
3
+ --SKIPIF--
4
+ <?php if (!extension_loaded ("wddx " )) print "skip " ; ?>
5
+ --FILE--
6
+ <?php
7
+
8
+ $ xml =<<<XML
9
+ <?xml version='1.0'?>
10
+ <!DOCTYPE wddxPacket SYSTEM 'wddx_0100.dtd'>
11
+ <wddxPacket>
12
+ <var name="
13
+ XML ;
14
+
15
+ $ xml .= str_repeat ('F ' ,0x80000 );
16
+
17
+ $ xml .= <<<XML
18
+ ">
19
+ </wddxPacket>
20
+ XML ;
21
+ var_dump (wddx_deserialize ($ xml ));
22
+
23
+ ?>
24
+ --EXPECT--
25
+ NULL
Original file line number Diff line number Diff line change @@ -241,6 +241,9 @@ static int wddx_stack_destroy(wddx_stack *stack)
241
241
}
242
242
efree (stack -> elements );
243
243
}
244
+ if (stack -> varname ) {
245
+ efree (stack -> varname );
246
+ }
244
247
return SUCCESS ;
245
248
}
246
249
/* }}} */
You can’t perform that action at this time.
0 commit comments